π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
feat(onnx): widen dynamo ONNX export coverage and add the export support page (#4182)
Jian Shi4b69473a645b
diff --git a/.gitignore b/.gitignoreindex 47486e9bf..8f0b2af77 100644--- a/.gitignore+++ b/.gitignore@@ -23,6 +23,7 @@ docs/source/_static/img/*jpgdocs/source/_static/scripts/*docs/source/get-started/performance.rstdocs/source/community/adoption.rst+docs/source/get-started/export-support.rstdocs/source/_generated/*DS_Store*jpg@@ -46,3 +47,7 @@ benchmarks/profile/# Editor / agent metadata.omc/+docs/export_support/results/++# kornia hub download cache (created by ONNXLoader / model downloads in the working directory)+.kornia_hub/diff --git a/CHANGELOG.md b/CHANGELOG.mdindex e81406c05..5c624199f 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -20,6 +20,47 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0* An **Adoption** page (`community/adoption`) listing the most-starred GitHub repositories andpackages that depend on kornia, rendered at build time from `docs/source/_data/dependents.json`;`docs/fetch_dependents.py` refreshes that snapshot from GitHub's dependency graph. (#4155)+* Dynamo ONNX export (`torch.onnx.export(..., dynamo=True)`) now covers a much larger part of the+ library: about 140 additional operator cases in the export survey capture, pass the ONNX checker+ and match eager execution under onnxruntime. Operators that failed graph capture or had no ONNX+ lowering gained an export-time path that returns the same values eagerly: matrix inverses up to+ 4x4 use a closed-form adjugate instead of `aten::linalg_inv` (`warp_perspective3d`,+ `warp_affine3d`, `rotate3d`, `affine3d`, `get_projective_transform`, `invert_affine_transform`,+ `denormalize_homography`, `symmetric_transfer_error`, `safe_inverse_with_mask`, `DepthWarper`,+ `PinholeCamera`, `StereoCamera`, `NamedPose`, `ImageRegistrator`, `ParametrizedLine.intersect`+ and the `Se2`/`Se3`/`So2` groups); `MedianBlur`/`median_blur` select the median through `sort`;+ `HausdorffERLoss`/`HausdorffERLoss3D` pool through `amax` (which also makes the 3D loss run on MPS); `distance_transform` avoids `hypot`;+ `match_nn`/`match_mnn`/`DescriptorMatcher` avoid `cdist`; the mutual-information losses, the+ Bessel kernels, `solve_quadratic`, `matrix_cofactor_tensor`, `decompose_essential_matrix_no_svd`,+ `distort_points`/`undistort_points`/`undistort_image`, `Boxes`/`Boxes3D` (`from_tensor`,+ `to_mask`), `bbox_to_mask3d`, `mean_iou_bbox`, `conv_soft_argmax2d` with a tensor temperature,+ `JPEGCodecDifferentiable`, `ZCAWhitening` (`transform`/`inverse_transform`), `BoxFiltering`,+ `MotionBlur3D`, `center_crop`/`crop_and_resize`/`crop_by_transform_mat3d` and the+ `OriNet`/`LAFOrienter`/`LAFAffNetShapeEstimator`/`HardNet`/`HardNet8`/`SIFTFeature`/+ `LAFDescriptor`/`DeDoDe` feature stack are branch-free or guard their data-dependent checks with+ `kornia.core.utils.is_exporting()`. Among augmentations, `LongestMaxSize`, `SmallestMaxSize`,+ `RandomCrop`, `RandomResizedCrop`, `RandomAffine3D`, `RandomRotation3D`, `RandomMotionBlur3D`,+ `RandomJPEG`, `RandomMedianBlur`, `RandomPlanckianJitter` and `AugmentationSequential` with+ crops or boxes now export, and `LightGlue` exports once `depth_confidence`/`width_confidence`+ pruning is disabled. Behavior notes: `Se2`/`Se3`/`So2`/`ParametrizedLine` built from a tensor+ that already carries autograd history (`Se2.exp(v)`, `ParametrizedLine.through(p0, p1)`) keep+ that history: the tensor is registered as a buffer instead of being re-rooted as an+ `nn.Parameter`, so `.to()`, `state_dict()` and `load_state_dict()` still reach it under the same+ key but it no longer appears in `parameters()`; `kornia.core.utils.is_exporting()` falls back to+ `is_compiling()` on torch < 2.6, which has no export flag (inside a Dynamo trace newer torch+ folds its flag to `True` for `torch.compile` as well, so the export-safe paths are what a+ compiled graph contains on every supported version); under export `crop_by_indices` with a+ `size` resamples the crop and without one keeps the eager path, `distort_points`/+ `undistort_points` always apply the tilt term (a no-op when the coefficients are zero) and+ `normalize`/`denormalize` accept a 1-D `(C,)` mean/std; `matrix_cofactor_tensor` returns exact+ cofactors for singular matrices instead of raising when every matrix in the batch is singular.+ (#4182)+* An **ONNX, torch.compile and torch.export support** page under Resources (`get-started/export-support`)+ lists every surveyed public operator, grouped by package and section, with its dynamo ONNX export,+ `torch.export` and `torch.compile` outcome, the cause of each failure and a search box with result+ filters. It is rendered at build time from the committed snapshot+ `docs/source/_data/export_support.json`; `docs/export_support/run.py` reruns the survey to refresh+ it. (#4182)* Every page in the **Models** section of the docs now opens with the shortest script that runs themodel and a figure of its output on a real input, with the paper card moved to the bottom. Thefigures are rendered by `docs/generate_model_examples.py` and committed underdiff --git a/docs/export_support/README.md b/docs/export_support/README.mdnew file mode 100644index 000000000..f996c559f--- /dev/null+++ b/docs/export_support/README.md@@ -0,0 +1,59 @@+# Graph-capture survey behind the support page++The [ONNX, torch.compile and torch.export support](../source/get-started/index.rst) page of the+documentation is rendered from `docs/source/_data/export_support.json`, a committed snapshot of+what this directory measures. The page itself is generated at docs build time by+`docs/generate_export_support.py`; nothing here runs during a docs build.++## What is measured++Every *case* is one public callable (function or `nn.Module` instance) with concrete CPU float32+inputs, registered in one of the `cases_*.py` files:++| file | covers |+| --- | --- |+| `cases_aug.py` | `kornia.augmentation` (2D, 3D, containers, auto policies) |+| `cases_feature.py` | `kornia.feature` (detectors, descriptors, matchers) |+| `cases_geomA.py` | `kornia.geometry` transforms, conversions, cameras, calibration |+| `cases_geomB.py` | the rest of `kornia.geometry` (epipolar, Lie groups, boxes, ...) |+| `cases_misc.py` | `kornia.filters`, `color`, `enhance`, `morphology`, `contrib`, `losses`, `metrics`, `utils`, `sensors`, `io`, `nerf`, `tracking`, `x` |+| `cases_models.py` | `kornia.models` (weights are downloaded when they are not cached) |++For each case:++- **ONNX** (`harness.py`): `torch.onnx.export(dynamo=True, opset_version=18)`, `onnx.checker`,+ then an `onnxruntime` run compared against eager.+- **torch.export** and **torch.compile** (`probe_compile.py`): `torch.export.export`, then+ `torch._dynamo.explain` for the graph-break count and a `torch.compile` run compared against+ eager.++Random operators cannot be compared value-for-value (the RNG stream differs inside the graph), so+they are reported as *ok-unverified* when the captured program runs and returns finite outputs of+the right shape.++## Regenerating the snapshot++```bash+pixi run -e default install-docs && pixi run build-docs # once, so operators get cross-referenced+python docs/export_support/run.py # ~2 h on 8 CPU cores; resumable+pixi run build-docs+```++`run.py` writes per-group results and logs to `docs/export_support/results/` (git-ignored) and+then calls `merge.py`, which produces the snapshot. Rerunning `run.py` only probes cases that have+no record yet, so a worker that crashed (a segfault leaves a `crashed` marker) can just be started+again. Each probe also writes an `inventory_*.json` naming every case of its group and the kornia+revision and torch version it ran with; records left by another revision or torch are discarded+instead of resumed. The merge refuses to write the snapshot while a worker failed, a case has no+record, or the groups were measured at different revisions, so a partial run cannot silently+undercount the coverage; `--force` merges anyway. `run.py aug` restricts the run to one case group;+`run.py --merge-only` rebuilds the JSON from existing results. Run the probes with the same torch /+onnx / onnxruntime / onnxscript versions as the snapshot header unless the point of the rerun is+to move to new versions.++## Adding a case++Register it in the matching `cases_*.py` with `case(...)` (see the docstring in `harness.py`): a+unique name, the group used as the page section, the callable, the tensor inputs, Python-only+kwargs, and a note that shows up on the page. Variants of one operator use the `name[variant]`+convention so they group under the same row label.diff --git a/docs/export_support/cases_aug.py b/docs/export_support/cases_aug.pynew file mode 100644index 000000000..9e90e5e6a--- /dev/null+++ b/docs/export_support/cases_aug.py@@ -0,0 +1,705 @@+# LICENSE HEADER MANAGED BY add-license-header+#+# Copyright 2018 Kornia Team+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+#++"""ONNX export survey β kornia.augmentation (deterministic params-fed + random-mode).++PART 1 (group augmentation*, deterministic): ``aug(img, params=params)`` with the sampled parameter+tensors fed as ONNX inputs (wrapper ``Det``); containers/auto are called once eagerly and then+exported with ``params=seq._params`` held constant.+PART 2 (group *.random): ``aug(img)`` in train mode, randomness inside the graph, ``check=False``.+"""++from __future__ import annotations++import sys+import traceback++import torch+from harness import case, run_cases+from torch import nn++import kornia as K+import kornia.augmentation as KA+from kornia.augmentation.auto import AutoAugment, RandAugment, TrivialAugment++torch.manual_seed(0)++IMG = torch.rand(2, 3, 32, 40)+IMG1 = torch.rand(1, 3, 32, 40)+VOL = torch.rand(2, 1, 8, 16, 16)+LABEL = torch.tensor([0, 1])+MASK = (torch.rand(2, 1, 32, 40) > 0.5).float()+MASK_INT = torch.randint(0, 3, (2, 32, 40))+MASK3D_INT = torch.randint(0, 3, (2, 8, 16, 16))+KPTS = torch.stack([torch.rand(2, 5) * 39, torch.rand(2, 5) * 31], -1) # (B, N, 2) inside the image+BBOX_XYXY = torch.tensor([[[2.0, 3.0, 20.0, 25.0], [10.0, 5.0, 38.0, 30.0]]]).repeat(2, 1, 1) # (B, 2, 4)+VIDEO = torch.rand(2, 4, 3, 16, 20) # BTCHW++NONPARAM_KEYS = ("batch_prob", "forward_input_shape")+++class Det(nn.Module):+ """Call ``aug(*imgs, params=p)`` with the tensor-valued params fed as positional inputs."""++ def __init__(self, aug: nn.Module, params: dict, keys: list[str], n_data: int = 1) -> None:+ super().__init__()+ self.aug = aug+ self.const = {k: v for k, v in params.items() if k not in keys}+ self.keys = keys+ self.n_data = n_data++ def forward(self, *xs):+ data, ps = xs[: self.n_data], xs[self.n_data :]+ p = dict(self.const)+ p.update(zip(self.keys, ps))+ return self.aug(*data, params=p)+++class Rand(nn.Module):+ """Call ``aug(*data)`` β parameters are sampled inside the graph (train mode kept)."""++ def __init__(self, aug: nn.Module, n_data: int = 1) -> None:+ super().__init__()+ self.aug = aug+ self.n_data = n_data++ def forward(self, *xs):+ out = self.aug(*xs[: self.n_data])+ return out++ def eval(self): # keep the augmentation in train mode (harness calls .eval())+ return self+++CASES: list = []+++def build(+ name: str,+ group: str,+ ctor,+ data: list[torch.Tensor],+ *,+ note: str = "",+ tags=(),+ det: bool = True,+ rand: bool = True,+ rand_note: str = "",+ direct: bool = False,+ atol: float = 2e-4,+ check_det: bool = True,+ skip_rand: str | None = None,+ const_keys: tuple = (),+):+ """Add a deterministic (params-fed) case and a random-mode case for ``ctor()``.++ ``direct=True``: no random params -> deterministic case is a plain ``aug(*data)`` call.+ """+ tags = tuple(tags)+ if det:+ try:+ aug = ctor()+ if direct:+ CASES.append(+ case(+ name,+ group,+ Rand(aug, len(data)),+ list(data),+ note=note or "no random params; aug(img) direct",+ tags=tags,+ atol=atol,+ )+ )+ else:+ torch.manual_seed(7)+ shape = data[0].shape+ params = aug.forward_parameters(shape)+ if hasattr(aug, "data_keys") and "dtype" not in params: # mix augmentations record dtype+ from kornia.constants import DType++ params.update({"dtype": torch.tensor(DType.get(data[0].dtype).value)})+ keys = [+ k+ for k in params+ if k not in NONPARAM_KEYS and torch.is_tensor(params[k]) and k != "dtype" and k not in const_keys+ ]+ n = f"params fed as inputs: {keys}" if keys else "no tensor params (only batch_prob/shape, constant)"+ CASES.append(+ case(+ name,+ group,+ Det(aug, params, keys, len(data)),+ list(data) + [params[k] for k in keys],+ note=(note + "; " if note else "") + n,+ tags=tags,+ atol=atol,+ check=check_det,+ )+ )+ except Exception as e:+ CASES.append(+ case(+ name,+ group,+ None,+ list(data),+ skip=f"CONSTRUCTION/PARAM FAILURE (spec): {type(e).__name__}: {e}"[:300],+ note=note,+ tags=tags,+ )+ )+ traceback.print_exc()+ if rand:+ try:+ aug = ctor()+ CASES.append(+ case(+ f"{name}[random]",+ group + ".random",+ Rand(aug, len(data)),+ list(data),+ check=False,+ note=rand_note or "aug(img) in train mode, randomness inside the graph",+ tags=tags,+ skip=skip_rand,+ )+ )+ except Exception as e:+ CASES.append(+ case(+ f"{name}[random]",+ group + ".random",+ None,+ list(data),+ skip=f"CONSTRUCTION FAILURE (spec): {type(e).__name__}: {e}"[:300],+ tags=tags,+ )+ )+++def seq_build(+ name: str, group: str, ctor, data: list[torch.Tensor], *, note: str = "", tags=(), rand: bool = True, call=None+):+ """Container recipe: run once eagerly to populate ``_params``; export with params constant."""+ tags = tuple(tags)+ try:+ seq = ctor()+ torch.manual_seed(7)+ with torch.no_grad():+ seq(*data)+ params = seq._params++ class SeqDet(nn.Module):+ def __init__(self):+ super().__init__()+ self.seq = seq++ def forward(self, *xs):+ return self.seq(*xs, params=params)++ CASES.append(+ case(+ name,+ group,+ SeqDet(),+ list(data),+ tags=tags,+ note=(note + "; " if note else "") + "params=seq._params held CONSTANT (only image is a live input)",+ )+ )+ except Exception as e:+ CASES.append(+ case(+ name,+ group,+ None,+ list(data),+ skip=f"CONSTRUCTION/EAGER FAILURE (spec): {type(e).__name__}: {e}"[:300],+ note=note,+ tags=tags,+ )+ )+ traceback.print_exc()+ if rand:+ try:+ seq = ctor()+ CASES.append(+ case(+ f"{name}[random]",+ group + ".random",+ Rand(seq, len(data)),+ list(data),+ check=False,+ tags=tags,+ note="container called directly; parameters sampled inside the graph",+ )+ )+ except Exception as e:+ CASES.append(+ case(+ f"{name}[random]",+ group + ".random",+ None,+ list(data),+ skip=f"CONSTRUCTION FAILURE (spec): {type(e).__name__}: {e}"[:300],+ tags=tags,+ )+ )+++# ----------------------------------------------------------------------------- PART 1+2: 2D not yet covered+G2 = "augmentation"+build(+ "Normalize",+ G2,+ lambda: KA.Normalize(mean=torch.tensor([0.5, 0.4, 0.3]), std=torch.tensor([0.2, 0.25, 0.3])),+ [IMG],+ direct=True,+)+build(+ "Denormalize",+ G2,+ lambda: KA.Denormalize(mean=torch.tensor([0.5, 0.4, 0.3]), std=torch.tensor([0.2, 0.25, 0.3])),+ [IMG],+ direct=True,+)+build("Resize", G2, lambda: KA.Resize((24, 36)), [IMG], direct=True, note="size (24,36) baked")+build(+ "Resize[antialias]",+ G2,+ lambda: KA.Resize((16, 20), antialias=True),+ [IMG],+ direct=True,+ note="antialias=True",+ rand=False,+)+build("LongestMaxSize", G2, lambda: KA.LongestMaxSize(60), [IMG], direct=True, note="max_size=60 baked")+build("SmallestMaxSize", G2, lambda: KA.SmallestMaxSize(24), [IMG], direct=True, note="max_size=24 baked")+build(+ "LongestMaxSize[const-size]",+ G2,+ lambda: KA.LongestMaxSize(60),+ [IMG],+ rand=False,+ const_keys=("output_size",),+ note="output_size param held constant (not a graph input)",+)+build(+ "SmallestMaxSize[const-size]",+ G2,+ lambda: KA.SmallestMaxSize(24),+ [IMG],+ rand=False,+ const_keys=("output_size",),+ note="output_size param held constant (not a graph input)",+)+build("PadTo", G2, lambda: KA.PadTo((40, 48)), [IMG], direct=True, note="size (40,48) baked")+build(+ "PadTo[reflect]",+ G2,+ lambda: KA.PadTo((40, 48), pad_mode="reflect"),+ [IMG],+ direct=True,+ note="pad_mode=reflect",+ rand=False,+)+build("RandomRotation90", G2, lambda: KA.RandomRotation90(times=(1, 3), p=1.0), [IMG])+build("RandomShear", G2, lambda: KA.RandomShear(shear=10.0, p=1.0), [IMG])+build("RandomTranslate", G2, lambda: KA.RandomTranslate((0.1, 0.2), (0.1, 0.2), p=1.0), [IMG])+build("RandomChannelDropout[b1]", G2, lambda: KA.RandomChannelDropout(p=1.0), [IMG1], rand=False, note="batch 1")++# ----------------------------------------------------------------------------- PART 2 only: 2D from the+# previous pass (random mode)+PREV2D = {+ "ColorJiggle": lambda: KA.ColorJiggle(0.3, 0.3, 0.3, 0.3, p=1.0),+ "ColorJitter": lambda: KA.ColorJitter(0.3, 0.3, 0.3, 0.3, p=1.0),+ "RandomAffine": lambda: KA.RandomAffine((-15.0, 20.0), (0.1, 0.1), (0.7, 1.3), 20, p=1.0),+ "RandomBoxBlur": lambda: KA.RandomBoxBlur((7, 7), p=1.0),+ "RandomBrightness": lambda: KA.RandomBrightness((0.0, 1.0), p=1.0),+ "RandomContrast": lambda: KA.RandomContrast((0.0, 1.0), p=1.0),+ "RandomChannelDropout": lambda: KA.RandomChannelDropout(p=1.0),+ "RandomChannelShuffle": lambda: KA.RandomChannelShuffle(p=1.0),+ "RandomElasticTransform": lambda: KA.RandomElasticTransform((63, 63), (32, 32), (2.0, 2.0), p=1.0),+ "RandomEqualize": lambda: KA.RandomEqualize(p=1.0),+ "RandomErasing": lambda: KA.RandomErasing((0.2, 0.4), (0.3, 1 / 0.3), p=1.0),+ "RandomFisheye": lambda: KA.RandomFisheye(+ torch.tensor([-0.3, 0.3]), torch.tensor([-0.3, 0.3]), torch.tensor([0.9, 1.0]), p=1.0+ ),+ "RandomGamma": lambda: KA.RandomGamma((0.0, 1.0), p=1.0),+ "RandomGaussianBlur": lambda: KA.RandomGaussianBlur((3, 3), (0.1, 2.0), p=1.0),+ "RandomGaussianIllumination": lambda: KA.RandomGaussianIllumination(+ (0.5, 0.5), (0.5, 0.5), (0.5, 0.5), (-1.0, 1.0), p=1.0+ ),+ "RandomGaussianNoise": lambda: KA.RandomGaussianNoise(0.0, 0.05, p=1.0),+ "RandomGrayscale": lambda: KA.RandomGrayscale(p=1.0),+ "RandomHue": lambda: KA.RandomHue((-0.5, 0.5), p=1.0),+ "RandomHorizontalFlip": lambda: KA.RandomHorizontalFlip(p=1.0),+ "RandomVerticalFlip": lambda: KA.RandomVerticalFlip(p=1.0),+ "RandomInvert": lambda: KA.RandomInvert(p=1.0),+ "RandomJPEG": lambda: KA.RandomJPEG((1.0, 5.0), p=1.0),+ "RandomLinearCornerIllumination": lambda: KA.RandomLinearCornerIllumination((0.5, 0.5), (-1.0, 1.0), p=1.0),+ "RandomLinearIllumination": lambda: KA.RandomLinearIllumination((0.5, 0.5), (-1.0, 1.0), p=1.0),+ "RandomMedianBlur": lambda: KA.RandomMedianBlur((3, 3), p=1.0),+ "RandomMotionBlur": lambda: KA.RandomMotionBlur(7, 35.0, 0.5, p=1.0),+ "RandomPerspective": lambda: KA.RandomPerspective(0.2, p=1.0),+ "RandomPlanckianJitter": lambda: KA.RandomPlanckianJitter(p=1.0),+ "RandomPlasmaShadow": lambda: KA.RandomPlasmaShadow((0.2, 0.5), p=1.0),+ "RandomPlasmaBrightness": lambda: KA.RandomPlasmaBrightness(p=1.0),+ "RandomPlasmaContrast": lambda: KA.RandomPlasmaContrast(p=1.0),+ "RandomPosterize": lambda: KA.RandomPosterize((1, 4), p=1.0),+ "RandomRotation": lambda: KA.RandomRotation(45.0, p=1.0),+ "RandomSaltAndPepperNoise": lambda: KA.RandomSaltAndPepperNoise((0.05, 0.5), (0.1, 0.7), p=1.0),+ "RandomSaturation": lambda: KA.RandomSaturation((0.5, 5.0), p=1.0),+ "RandomSharpness": lambda: KA.RandomSharpness(16.0, p=1.0),+ "RandomSolarize": lambda: KA.RandomSolarize(0.2, 0.2, p=1.0),+ "RandomThinPlateSpline": lambda: KA.RandomThinPlateSpline(p=1.0),+ "RandomCrop": lambda: KA.RandomCrop((24, 32), p=1.0),+ "RandomResizedCrop": lambda: KA.RandomResizedCrop((24, 32), p=1.0),+ "CenterCrop": lambda: KA.CenterCrop((24, 32)),+ "RandomRain": lambda: KA.RandomRain(p=1.0),+ "RandomSnow": lambda: KA.RandomSnow(p=1.0),+ "RandomRGBShift": lambda: KA.RandomRGBShift(p=1.0),+ "RandomAutoContrast": lambda: KA.RandomAutoContrast(p=1.0),+ "RandomClahe": lambda: KA.RandomClahe(p=1.0),+ "RandomDissolving": lambda: KA.RandomDissolving(p=1.0),+}+for _n, _c in PREV2D.items():+ build(_n, G2, _c, [IMG], det=False)+build(+ "ColorJitter[fixed order]",+ G2,+ lambda: KA.ColorJitter(0.3, 0.3, 0.3, 0.3, p=1.0, order=(0, 1, 2, 3)),+ [IMG],+ det=False,+ rand_note="order=(0, 1, 2, 3): the per-call random operation order is the only export blocker",+)++# default p=0.5 for 5 representative ones (batch_prob branching becomes live)+P05 = {+ "RandomHorizontalFlip": lambda: KA.RandomHorizontalFlip(p=0.5),+ "ColorJiggle": lambda: KA.ColorJiggle(0.3, 0.3, 0.3, 0.3, p=0.5),+ "RandomAffine": lambda: KA.RandomAffine((-15.0, 20.0), (0.1, 0.1), (0.7, 1.3), 20, p=0.5),+ "RandomGaussianBlur": lambda: KA.RandomGaussianBlur((3, 3), (0.1, 2.0), p=0.5),+ "RandomCrop": lambda: KA.RandomCrop((24, 32), p=0.5),+}+for _n, _c in P05.items():+ build(f"{_n}[p=0.5]", G2, _c, [IMG], det=False, rand_note="default p=0.5: per-sample batch_prob gate live in graph")++# ----------------------------------------------------------------------------- 3D+G3 = "augmentation3d"+build(+ "RandomAffine3D",+ G3,+ lambda: KA.RandomAffine3D(15.0, translate=(0.1, 0.1, 0.1), scale=(0.8, 1.2), p=1.0),+ [VOL],+ tags=("3d",),+)+build("RandomCrop3D", G3, lambda: KA.RandomCrop3D((6, 12, 12), p=1.0), [VOL], tags=("3d",), note="size (6,12,12) baked")+build("RandomRotation3D", G3, lambda: KA.RandomRotation3D(15.0, p=1.0), [VOL], tags=("3d",))+build("RandomPerspective3D", G3, lambda: KA.RandomPerspective3D(0.2, p=1.0), [VOL], tags=("3d",))+build("RandomMotionBlur3D", G3, lambda: KA.RandomMotionBlur3D(3, 35.0, 0.5, p=1.0), [VOL], tags=("3d",))+build("RandomEqualize3D", G3, lambda: KA.RandomEqualize3D(p=1.0), [VOL], tags=("3d",))+build("RandomDepthicalFlip3D", G3, lambda: KA.RandomDepthicalFlip3D(p=1.0), [VOL], tags=("3d",))+build("RandomHorizontalFlip3D", G3, lambda: KA.RandomHorizontalFlip3D(p=1.0), [VOL], tags=("3d",))+build("RandomVerticalFlip3D", G3, lambda: KA.RandomVerticalFlip3D(p=1.0), [VOL], tags=("3d",))+build("CenterCrop3D", G3, lambda: KA.CenterCrop3D((6, 12, 12)), [VOL], direct=True, tags=("3d",), note="size baked")+build(+ "RandomTransplantation3D",+ G3,+ lambda: KA.RandomTransplantation3D(p=1.0),+ [VOL, MASK3D_INT],+ tags=("3d", "mix"),+ note="inputs (volume, int mask)",+)++# ----------------------------------------------------------------------------- mix+GM = "augmentation.mix"+build("RandomMixUpV2", GM, lambda: KA.RandomMixUpV2(p=1.0), [IMG, LABEL], tags=("mix",), note="inputs (image, label)")+build("RandomCutMixV2", GM, lambda: KA.RandomCutMixV2(p=1.0), [IMG, LABEL], tags=("mix",), note="inputs (image, label)")+build(+ "RandomMosaic",+ GM,+ lambda: KA.RandomMosaic(output_size=(32, 40), p=1.0, data_keys=["input"]),+ [IMG],+ tags=("mix",),+ note="output_size (32,40) baked; data_keys=[input]",+)+build(+ "RandomMosaic[bbox]",+ GM,+ lambda: KA.RandomMosaic(output_size=(32, 40), p=1.0, data_keys=["input", "bbox_xyxy"]),+ [IMG, BBOX_XYXY],+ tags=("mix",),+ note="data_keys=[input,bbox_xyxy]",+)+build("RandomJigsaw", GM, lambda: KA.RandomJigsaw(grid=(2, 2), p=1.0), [IMG], tags=("mix",), note="grid (2,2) baked")+build(+ "RandomTransplantation",+ GM,+ lambda: KA.RandomTransplantation(p=1.0),+ [IMG, MASK_INT],+ tags=("mix",),+ note="inputs (image, int mask)",+)+build("PatchMix", GM, lambda: KA.PatchMix(patch_size=8, p=1.0), [IMG, LABEL], tags=("mix",), note="patch_size=8 baked")++# ----------------------------------------------------------------------------- containers+GC = "augmentation.container"+++def _augs():+ # children that export on their own (ColorJiggle does not: `order.tolist()` indexing) -> container+ # mechanics are what is tested+ return [KA.RandomHorizontalFlip(p=1.0), KA.RandomBrightness((0.8, 1.2), p=1.0), KA.RandomAffine(15.0, p=1.0)]+++seq_build(+ "AugmentationSequential",+ GC,+ lambda: KA.AugmentationSequential(*_augs(), data_keys=["input"]),+ [IMG],+ note="HFlip(p=1)+RandomBrightness(p=1)+RandomAffine(p=1)",+)+seq_build(+ "AugmentationSequential[ColorJiggle]",+ GC,+ lambda: KA.AugmentationSequential(+ KA.RandomHorizontalFlip(p=1.0),+ KA.ColorJiggle(0.1, 0.1, 0.1, 0.1, p=1.0),+ KA.RandomAffine(15.0, p=1.0),+ data_keys=["input"],+ ),+ [IMG],+ note="same with a ColorJiggle child (expected to inherit ColorJiggle's order.tolist() blocker)",+)+seq_build(+ "AugmentationSequential[p=0.5]",+ GC,+ lambda: KA.AugmentationSequential(+ KA.RandomHorizontalFlip(p=0.5),+ KA.RandomBrightness((0.8, 1.2), p=0.5),+ KA.RandomAffine(15.0, p=0.5),+ data_keys=["input"],+ ),+ [IMG],+ note="same pipeline with p=0.5 (batch_prob gates live)",+)+seq_build(+ "AugmentationSequential[mask]",+ GC,+ lambda: KA.AugmentationSequential(*_augs(), data_keys=["input", "mask"]),+ [IMG, MASK],+ note="data_keys=[input, mask]",+)+seq_build(+ "AugmentationSequential[keypoints]",+ GC,+ lambda: KA.AugmentationSequential(*_augs(), data_keys=["input", "keypoints"]),+ [IMG, KPTS],+ note="data_keys=[input, keypoints]",+ tags=("points",),+)+seq_build(+ "AugmentationSequential[bbox_xyxy]",+ GC,+ lambda: KA.AugmentationSequential(*_augs(), data_keys=["input", "bbox_xyxy"]),+ [IMG, BBOX_XYXY],+ note="data_keys=[input, bbox_xyxy]",+)+seq_build(+ "AugmentationSequential[crop]",+ GC,+ lambda: KA.AugmentationSequential(+ KA.RandomResizedCrop((24, 32), p=1.0), KA.RandomHorizontalFlip(p=1.0), data_keys=["input"]+ ),+ [IMG],+ note="shape-changing child (RandomResizedCrop)",+)+seq_build(+ "ImageSequential",+ GC,+ lambda: KA.ImageSequential(+ KA.RandomBrightness((0.8, 1.2), p=1.0), K.color.RgbToBgr(), KA.RandomHorizontalFlip(p=1.0)+ ),+ [IMG],+ note="RandomBrightness + kornia.color.RgbToBgr + HFlip",+)+seq_build(+ "ImageSequential[random_apply]",+ GC,+ lambda: KA.ImageSequential(+ KA.RandomBrightness((0.8, 1.2), p=1.0),+ KA.RandomHorizontalFlip(p=1.0),+ KA.RandomGrayscale(p=1.0),+ random_apply=2,+ ),+ [IMG],+ note="random_apply=2 (random subset/order of children)",+)+seq_build(+ "PatchSequential",+ GC,+ lambda: KA.PatchSequential(+ KA.RandomBrightness((0.8, 1.2), p=1.0),+ KA.RandomHorizontalFlip(p=1.0),+ KA.RandomGrayscale(p=1.0),+ KA.RandomSolarize(0.1, 0.1, p=1.0),+ grid_size=(2, 2),+ patchwise_apply=True,+ ),+ [IMG],+ note="grid_size (2,2), patchwise_apply=True (one module per patch)",+)+seq_build(+ "PatchSequential[not-patchwise]",+ GC,+ lambda: KA.PatchSequential(+ KA.RandomBrightness((0.8, 1.2), p=1.0), KA.RandomHorizontalFlip(p=1.0), grid_size=(2, 2), patchwise_apply=False+ ),+ [IMG],+ note="patchwise_apply=False",+)+seq_build(+ "VideoSequential",+ GC,+ lambda: KA.VideoSequential(+ KA.RandomAffine(15.0, p=1.0), KA.RandomBrightness((0.8, 1.2), p=1.0), data_format="BTCHW", same_on_frame=True+ ),+ [VIDEO],+ note="BTCHW (2,4,3,16,20), same_on_frame=True",+)+seq_build(+ "VideoSequential[BCTHW]",+ GC,+ lambda: KA.VideoSequential(+ KA.RandomAffine(15.0, p=1.0), KA.RandomBrightness((0.8, 1.2), p=1.0), data_format="BCTHW", same_on_frame=False+ ),+ [VIDEO.permute(0, 2, 1, 3, 4).contiguous()],+ note="BCTHW, same_on_frame=False",+)+++def _disp_seq():+ return KA.AugmentationSequential(+ KA.RandomBrightness((0.8, 1.2), p=1.0), KA.RandomAffine(15.0, p=1.0), data_keys=["input", "mask"]+ )+++def _many2many():+ d = KA.ManyToManyAugmentationDispather(_disp_seq(), _disp_seq())+ torch.manual_seed(7)+ with torch.no_grad():+ d((IMG, MASK), (IMG1.repeat(2, 1, 1, 1), MASK))+ ps = [a._params for a in d.augmentations]++ class M(nn.Module):+ def __init__(self):+ super().__init__()+ self.d = d++ def forward(self, a, b, c, e):+ return [aug(*inp, params=p) for inp, aug, p in zip(((a, b), (c, e)), self.d.augmentations, ps)]++ return M()+++def _many2one():+ d = KA.ManyToOneAugmentationDispather(_disp_seq(), _disp_seq())+ torch.manual_seed(7)+ with torch.no_grad():+ d(IMG, MASK)+ ps = [a._params for a in d.augmentations]++ class M(nn.Module):+ def __init__(self):+ super().__init__()+ self.d = d++ def forward(self, a, b):+ return [aug(a, b, params=p) for aug, p in zip(self.d.augmentations, ps)]++ return M()+++CASES.append(+ case(+ "ManyToManyAugmentationDispather",+ GC,+ _many2many(),+ [IMG, MASK, IMG1.repeat(2, 1, 1, 1), MASK],+ note="two AugmentationSequential(RandomBrightness, RandomAffine; input+mask); dispatcher forward has no params "+ "arg, so each child is called with its own _params constant (public API replayed manually)",+ )+)+CASES.append(+ case(+ "ManyToManyAugmentationDispather[random]",+ GC + ".random",+ (lambda d: lambda a, b, c, e: d((a, b), (c, e)))(KA.ManyToManyAugmentationDispather(_disp_seq(), _disp_seq())),+ [IMG, MASK, IMG1.repeat(2, 1, 1, 1), MASK],+ check=False,+ note="dispatcher called directly",+ )+)+CASES.append(+ case(+ "ManyToOneAugmentationDispather",+ GC,+ _many2one(),+ [IMG, MASK],+ note="two AugmentationSequential on the same (input, mask); children replayed with constant _params",+ )+)+CASES.append(+ case(+ "ManyToOneAugmentationDispather[random]",+ GC + ".random",+ (lambda d: lambda a, b: d(a, b))(KA.ManyToOneAugmentationDispather(_disp_seq(), _disp_seq())), # noqa: PLW0108+ [IMG, MASK],+ check=False,+ note="dispatcher called directly",+ )+)++# ----------------------------------------------------------------------------- auto+GA = "augmentation.auto"+seq_build(+ "RandAugment",+ GA,+ lambda: RandAugment(n=2, m=10),+ [IMG],+ note="n=2, m=10; policy chosen at eager call, then constant",+)+seq_build(+ "AutoAugment",+ GA,+ AutoAugment,+ [IMG],+ note="imagenet policy; sub-policy chosen at eager call, then constant",+)+seq_build("TrivialAugment", GA, TrivialAugment, [IMG], note="one op chosen at eager call, then constant")+seq_build(+ "AugmentationSequential[RandAugment]",+ GA,+ lambda: KA.AugmentationSequential(RandAugment(n=2, m=10)),+ [IMG],+ note="RandAugment wrapped in AugmentationSequential (doc recipe)",+)++if __name__ == "__main__":+ run_cases(CASES, sys.argv[1], only=sys.argv[2:] or None)diff --git a/docs/export_support/cases_feature.py b/docs/export_support/cases_feature.pynew file mode 100644index 000000000..6959548d0--- /dev/null+++ b/docs/export_support/cases_feature.py@@ -0,0 +1,819 @@+# LICENSE HEADER MANAGED BY add-license-header+#+# Copyright 2018 Kornia Team+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+#++"""ONNX export survey cases for kornia.feature (survey v2)."""++from __future__ import annotations++import sys+import traceback++import torch+import torch.nn.functional as F+from harness import case, run_cases++import kornia.feature as KF++torch.manual_seed(0)++# ----------------------------------------------------------------------------- shared inputs+IMG = torch.rand(1, 1, 32, 40) # gray+IMG3 = torch.rand(1, 3, 32, 40)+IMG_BIG = torch.rand(1, 1, 64, 80) # detectors need a pyramid+IMG3_BIG = torch.rand(1, 3, 64, 80)+IMG3_96 = torch.rand(1, 3, 64, 96) # divisible by 16 and 32 (DISK / XFeat)+IMG3_DEDODE = torch.rand(1, 3, 56, 84) # divisible by 14+PATCH32 = torch.rand(2, 1, 32, 32)+PATCH41 = torch.rand(2, 1, 41, 41)+PATCH19 = torch.rand(2, 1, 19, 19)+++def make_lafs(B: int = 1, N: int = 5, H: int = 32, W: int = 40, scale: float = 4.0, seed: int = 0) -> torch.Tensor:+ g = torch.Generator().manual_seed(seed)+ xy = torch.stack([torch.rand(B, N, generator=g) * (W - 16) + 8, torch.rand(B, N, generator=g) * (H - 16) + 8], -1)+ sc = torch.full((B, N, 1, 1), scale) * (0.75 + 0.5 * torch.rand(B, N, 1, 1, generator=g))+ ori = torch.rand(B, N, 1, generator=g) * 360.0 - 180.0+ return KF.laf_from_center_scale_ori(xy, sc, ori)+++LAF = make_lafs() # (1, 5, 2, 3) inside 32x40+LAF_BIG = make_lafs(1, 8, 64, 80, 6.0, seed=1)+XY = LAF[..., :, 2].clone() # (1, 5, 2)+SCALE = KF.get_laf_scale(LAF) # (1, 5, 1, 1)+ORI = KF.get_laf_orientation(LAF) # (1, 5, 1)+ANGLES = torch.rand(1, 5, 1) * 90.0+# ellipse (x, y, a, b, c) with [a b; b c] positive definite+_s = torch.tensor([1 / 16.0, 1 / 25.0, 1 / 9.0, 1 / 20.0, 1 / 12.0])+ELLS = torch.stack([XY[0, :, 0], XY[0, :, 1], _s, 0.1 * _s, 1.3 * _s], -1)[None] # (1, 5, 5)+H_01 = torch.tensor([[[1.02, 0.05, 1.5], [-0.03, 0.98, -1.0], [1e-4, -2e-4, 1.0]]]) # (1, 3, 3)++# descriptors: desc2 = perturbed desc1 (+ 2 distractors) so mutual/ratio tests actually match+_g = torch.Generator().manual_seed(3)+DESC1 = F.normalize(torch.randn(10, 128, generator=_g), dim=1)+DESC2 = torch.cat([DESC1 + 0.05 * torch.randn(10, 128, generator=_g), torch.randn(2, 128, generator=_g)])+DESC2 = F.normalize(DESC2[torch.randperm(12, generator=_g)], dim=1)+LAFS1 = make_lafs(1, 10, 64, 80, 5.0, seed=5)+LAFS2 = make_lafs(1, 12, 64, 80, 5.0, seed=6)+KPTS0 = KF.get_laf_center(LAFS1) # (1, 10, 2)+KPTS1 = KF.get_laf_center(LAFS2) # (1, 12, 2)+IMG_SIZE = torch.tensor([[80.0, 64.0]]) # (1, 2) as (W, H)+++class DictPair(torch.nn.Module):+ """Wrap a model taking {"image0", "image1"} so the model is a registered submodule (torch.export requirement)."""++ def __init__(self, m):+ super().__init__()+ self.m = m++ def forward(self, a, b):+ return self.m({"image0": a, "image1": b})+++class LGWrap(torch.nn.Module):+ def __init__(self, m):+ super().__init__()+ self.m = m++ def forward(self, k0, d0, k1, d1, s):+ return self.m(+ {+ "image0": {"keypoints": k0, "descriptors": d0, "image_size": s},+ "image1": {"keypoints": k1, "descriptors": d1, "image_size": s},+ }+ )+++class DISKWrap(torch.nn.Module):+ def __init__(self, m, **kw):+ super().__init__()+ self.m = m+ self.kw = kw++ def forward(self, im):+ feats = self.m(im, **self.kw)+ return tuple(t for f in feats for t in (f.keypoints, f.descriptors, f.detection_scores))+++class ALIKEDWrap(torch.nn.Module):+ def __init__(self, m):+ super().__init__()+ self.m = m++ def forward(self, im):+ feats = self.m(im)+ return tuple(t for f in feats for t in (f.keypoints, f.descriptors, f.keypoint_scores))+++def try_build(name: str, fn):+ """Construct a pretrained model; return (model, None) or (None, reason)."""+ try:+ return fn(), None+ except Exception as e:+ traceback.print_exc()+ return None, f"could not build/download {name}: {type(e).__name__}: {str(e)[:120]}"+++def pcase(name, group, builder, inputs, kwargs=None, **kw):+ """Case whose target is a pretrained model built lazily; skip with the download error if it fails."""+ target, reason = try_build(name, builder)+ if target is None:+ return case(name, group, None, inputs, kwargs, skip=reason, **kw)+ return case(name, group, target, inputs, kwargs, **kw)+++CASES: list = []++# ----------------------------------------------------------------------------- responses+R = "feature.responses"+CASES += [+ case("feature.harris_response", R, KF.harris_response, [IMG]),+ case("feature.harris_response[sigmas]", R, KF.harris_response, [IMG, torch.tensor([1.5])], note="sigmas (B,) live"),+ case("feature.harris_response[diff]", R, KF.harris_response, [IMG], {"grads_mode": "diff"}),+ case("feature.gftt_response", R, KF.gftt_response, [IMG]),+ case("feature.hessian_response", R, KF.hessian_response, [IMG]),+ case(+ "feature.dog_response",+ R,+ KF.dog_response,+ [torch.rand(1, 1, 4, 32, 40)],+ note="input is (B, C, L, H, W) scale levels",+ tags=("3d",),+ ),+ case("feature.dog_response_single", R, KF.dog_response_single, [IMG], {"sigma1": 1.0, "sigma2": 1.6}),+ case("feature.CornerHarris", R, KF.CornerHarris(0.04), [IMG]),+ case("feature.CornerGFTT", R, KF.CornerGFTT(), [IMG]),+ case("feature.BlobHessian", R, KF.BlobHessian(), [IMG]),+ case(+ "feature.BlobDoG",+ R,+ KF.BlobDoG(),+ [torch.rand(1, 1, 4, 32, 40)],+ tags=("3d",),+ note="docstring says (B,C,H,W) but dog_response requires 5-D",+ ),+ case("feature.BlobDoGSingle", R, KF.BlobDoGSingle(), [IMG]),+ case("feature.BlobHessian[batch2,rgb]", R, KF.BlobHessian(), [torch.rand(2, 3, 32, 40)], tags=("batch>1",)),+]++# ----------------------------------------------------------------------------- laf.py+L = "feature.laf"+CASES += [+ case("feature.laf_from_center_scale_ori", L, KF.laf_from_center_scale_ori, [XY, SCALE, ORI]),+ case("feature.laf_from_center_scale_ori[xy-only]", L, KF.laf_from_center_scale_ori, [XY], note="scale/ori default"),+ case("feature.get_laf_scale", L, KF.get_laf_scale, [LAF]),+ case("feature.get_laf_center", L, KF.get_laf_center, [LAF]),+ case("feature.get_laf_orientation", L, KF.get_laf_orientation, [LAF]),+ case("feature.set_laf_orientation", L, KF.set_laf_orientation, [LAF, ANGLES]),+ case("feature.rotate_laf", L, KF.rotate_laf, [LAF, ANGLES]),+ case("feature.scale_laf", L, KF.scale_laf, [LAF], {"scale_coef": 2.0}, note="scale_coef float baked"),+ case(+ "feature.scale_laf[tensor]",+ L,+ KF.scale_laf,+ [LAF, torch.rand(1, 5, 1, 1) + 0.5],+ note="scale_coef (B,N,1,1) live",+ ),+ case("feature.make_upright", L, KF.make_upright, [LAF]),+ case("feature.ellipse_to_laf", L, KF.ellipse_to_laf, [ELLS]),+ case("feature.laf_to_boundary_points", L, KF.laf_to_boundary_points, [LAF], {"n_pts": 12}, note="n_pts baked"),+ case(+ "feature.get_laf_pts_to_draw",+ L,+ KF.laf.get_laf_pts_to_draw,+ [LAF],+ {"img_idx": 0},+ note="returns two Python lists -> not exportable by design",+ ),+ case("feature.denormalize_laf", L, KF.denormalize_laf, [KF.normalize_laf(LAF, IMG), IMG]),+ case("feature.normalize_laf", L, KF.normalize_laf, [LAF, IMG]),+ case(+ "feature.laf.generate_patch_grid_from_normalized_LAF",+ L,+ KF.laf.generate_patch_grid_from_normalized_LAF,+ [IMG, KF.normalize_laf(LAF, IMG)],+ {"PS": 16},+ note="PS baked",+ ),+ case("feature.extract_patches_simple", L, KF.extract_patches_simple, [IMG, LAF], {"PS": 16}, note="PS baked"),+ case(+ "feature.extract_patches_simple[rgb,batch2]",+ L,+ KF.extract_patches_simple,+ [torch.rand(2, 3, 32, 40), make_lafs(2, 5)],+ {"PS": 16},+ tags=("batch>1",),+ ),+ case(+ "feature.extract_patches_from_pyramid",+ L,+ KF.extract_patches_from_pyramid,+ [IMG_BIG, LAF_BIG],+ {"PS": 16},+ note="PS baked",+ ),+ case("feature.laf_is_valid", L, KF.laf_is_valid, [LAF], note="bool (B,N) output"),+ case("feature.laf_is_inside_image", L, KF.laf_is_inside_image, [LAF, IMG], {"border": 2}, note="bool output"),+ case("feature.laf_to_three_points", L, KF.laf_to_three_points, [LAF]),+ case("feature.laf_from_three_points", L, KF.laf_from_three_points, [KF.laf_to_three_points(LAF)]),+ case("feature.perspective_transform_lafs", L, KF.perspective_transform_lafs, [H_01, LAF]),+ case("feature.KORNIA_CHECK_LAF", L, KF.KORNIA_CHECK_LAF, [LAF], note="validation helper; returns bool/None"),+]++# ----------------------------------------------------------------------------- orientation / affine shape+O = "feature.orientation_affine"+CASES += [+ case("feature.PassLAF", O, KF.PassLAF(), [LAF, IMG]),+ case("feature.PatchDominantGradientOrientation", O, KF.PatchDominantGradientOrientation(32), [PATCH32]),+ pcase(+ "feature.OriNet",+ O,+ lambda: KF.OriNet(pretrained=True),+ [PATCH32],+ tags=("model", "pretrained"),+ note="weights: OriNet.pth",+ ),+ case("feature.LAFOrienter", O, KF.LAFOrienter(19), [LAF_BIG, IMG_BIG], note="patch_size=19 (default PDGO)"),+ pcase(+ "feature.LAFOrienter[OriNet]",+ O,+ lambda: KF.LAFOrienter(32, angle_detector=KF.OriNet(pretrained=True)),+ [LAF_BIG, IMG_BIG],+ tags=("model", "pretrained"),+ ),+ case("feature.PatchAffineShapeEstimator", O, KF.PatchAffineShapeEstimator(19), [PATCH19]),+ case("feature.LAFAffineShapeEstimator", O, KF.LAFAffineShapeEstimator(19), [LAF_BIG, IMG_BIG]),+ pcase(+ "feature.LAFAffNetShapeEstimator",+ O,+ lambda: KF.LAFAffNetShapeEstimator(pretrained=True),+ [LAF_BIG, IMG_BIG],+ tags=("model", "pretrained"),+ note="weights: AffNet.pth",+ ),+]++# ----------------------------------------------------------------------------- descriptors+D = "feature.descriptors"+CASES += [+ case("feature.SIFTDescriptor", D, KF.SIFTDescriptor(41), [PATCH41], note="patch_size=41 default; rootsift"),+ case("feature.SIFTDescriptor[32,no-rootsift]", D, KF.SIFTDescriptor(32, rootsift=False), [PATCH32]),+ case("feature.siftdesc.sift_describe", D, KF.siftdesc.sift_describe, [PATCH32], {"patch_size": 32}),+ case(+ "feature.siftdesc.get_sift_pooling_kernel",+ D,+ lambda d: KF.siftdesc.get_sift_pooling_kernel(25).to(d.device),+ [torch.zeros(1)],+ note="ksize baked; fully constant graph",+ ),+ case("feature.DenseSIFTDescriptor", D, KF.DenseSIFTDescriptor(), [IMG]),+ pcase(+ "feature.MKDDescriptor",+ D,+ lambda: KF.MKDDescriptor(patch_size=32),+ [PATCH32],+ tags=("pretrained",),+ note="whitening weights mkd-concat-64.pth; patch_size=32",+ ),+ pcase("feature.MKDDescriptor[no-whitening]", D, lambda: KF.MKDDescriptor(patch_size=32, whitening=None), [PATCH32]),+ pcase(+ "feature.HardNet",+ D,+ lambda: KF.HardNet(pretrained=True),+ [PATCH32],+ tags=("model", "pretrained"),+ note="weights: checkpoint_liberty_with_aug.pth",+ ),+ pcase(+ "feature.HardNet8",+ D,+ lambda: KF.HardNet8(pretrained=True),+ [PATCH32],+ tags=("model", "pretrained"),+ note="weights: hardnet8v2.pt",+ ),+ pcase(+ "feature.HyNet",+ D,+ lambda: KF.HyNet(pretrained=True),+ [PATCH32],+ tags=("model", "pretrained"),+ note="weights: HyNet_LIB.pth",+ ),+ pcase(+ "feature.TFeat",+ D,+ lambda: KF.TFeat(pretrained=True),+ [PATCH32],+ tags=("model", "pretrained"),+ note="weights: tfeat-liberty.params",+ ),+ pcase(+ "feature.SOSNet",+ D,+ lambda: KF.SOSNet(pretrained=True),+ [PATCH32],+ tags=("model", "pretrained"),+ note="weights: sosnet_32x32_liberty.pth",+ ),+ case("feature.FilterResponseNorm2d", D, KF.FilterResponseNorm2d(8), [torch.rand(1, 8, 16, 20)]),+ case("feature.TLU", D, KF.TLU(8), [torch.rand(1, 8, 16, 20)]),+ pcase(+ "feature.LAFDescriptor",+ D,+ lambda: KF.LAFDescriptor(KF.HardNet(pretrained=True), patch_size=32),+ [IMG_BIG, LAF_BIG],+ tags=("model", "pretrained"),+ ),+ case(+ "feature.LAFDescriptor[SIFT,rgb]",+ D,+ KF.LAFDescriptor(KF.SIFTDescriptor(32), patch_size=32),+ [IMG3_BIG, LAF_BIG],+ note="grayscale_descriptor=True converts rgb",+ ),+ case(+ "feature.get_laf_descriptors",+ D,+ KF.get_laf_descriptors,+ [IMG_BIG, LAF_BIG],+ {"patch_descriptor": KF.SIFTDescriptor(32), "patch_size": 32},+ ),+ case(+ "feature.steerers.DiscreteSteerer",+ D,+ KF.steerers.DiscreteSteerer(torch.linalg.qr(torch.randn(128, 128))[0]),+ [DESC1],+ ),+ case(+ "feature.steerers.DiscreteSteerer.steer_descriptions",+ D,+ KF.steerers.DiscreteSteerer(torch.linalg.qr(torch.randn(128, 128))[0]),+ [DESC1],+ {"steerer_power": 3, "normalize": True},+ method="steer_descriptions",+ ),+]++# ----------------------------------------------------------------------------- detectors / pipelines (classical)+T = "feature.detectors"+CASES += [+ case(+ "feature.ScaleSpaceDetector",+ T,+ KF.ScaleSpaceDetector(num_features=32),+ [IMG_BIG],+ note="num_features=32 baked; default ScalePyramid(3,1.6,15) + BlobHessian + ConvQuadInterp3d",+ ),+ case(+ "feature.ScaleSpaceDetector[mask]",+ T,+ KF.ScaleSpaceDetector(num_features=32),+ [IMG_BIG, (torch.rand(1, 1, 64, 80) > 0.3).float()],+ note="mask live",+ ),+ case(+ "feature.MultiResolutionDetector",+ T,+ KF.MultiResolutionDetector(KF.BlobHessian(), num_features=32),+ [IMG_BIG],+ note="BlobHessian response; num_features=32",+ ),+ pcase(+ "feature.KeyNet",+ T,+ lambda: KF.KeyNet(pretrained=True),+ [IMG],+ tags=("model", "pretrained"),+ note="weights: keynet_pytorch.pth; dense response map",+ ),+ pcase(+ "feature.KeyNetDetector",+ T,+ lambda: KF.KeyNetDetector(pretrained=True, num_features=32),+ [IMG_BIG],+ tags=("model", "pretrained"),+ ),+ case("feature.SIFTFeature", T, KF.SIFTFeature(num_features=32), [IMG_BIG], note="num_features=32"),+ case(+ "feature.SIFTFeature[upright]",+ T,+ KF.SIFTFeature(num_features=32, upright=True),+ [IMG_BIG],+ note="RGB input is rejected eagerly ('model must return one response map'); gray only",+ ),+ case("feature.SIFTFeatureScaleSpace", T, KF.SIFTFeatureScaleSpace(num_features=32), [IMG_BIG]),+ pcase(+ "feature.GFTTAffNetHardNet",+ T,+ lambda: KF.GFTTAffNetHardNet(num_features=32),+ [IMG_BIG],+ tags=("model", "pretrained"),+ ),+ pcase(+ "feature.HesAffNetHardNet",+ T,+ lambda: KF.HesAffNetHardNet(num_features=32),+ [IMG_BIG],+ tags=("model", "pretrained"),+ ),+ pcase(+ "feature.KeyNetHardNet", T, lambda: KF.KeyNetHardNet(num_features=32), [IMG_BIG], tags=("model", "pretrained")+ ),+ pcase(+ "feature.KeyNetAffNetHardNet",+ T,+ lambda: KF.KeyNetAffNetHardNet(num_features=32),+ [IMG_BIG],+ tags=("model", "pretrained"),+ ),+ case(+ "feature.LocalFeature",+ T,+ KF.LocalFeature(KF.ScaleSpaceDetector(num_features=32), KF.LAFDescriptor(KF.SIFTDescriptor(32), 32)),+ [IMG_BIG],+ note="ScaleSpaceDetector + SIFT",+ ),+]++# ----------------------------------------------------------------------------- deep detectors / describers+M = "feature.models"+_disk, _disk_err = try_build("DISK", lambda: KF.DISK.from_pretrained("depth"))+CASES += [+ case(+ "feature.DISK",+ M,+ DISKWrap(_disk, n=64, window_size=5) if _disk else None,+ [IMG3_96],+ skip=_disk_err,+ tags=("model", "pretrained"),+ note="weights depth-save.pth; n=64 top-k; H,W %16",+ ),+ case(+ "feature.DISK[n=None]",+ M,+ DISKWrap(_disk, n=None, window_size=5) if _disk else None,+ [IMG3_96],+ skip=_disk_err,+ tags=("model", "pretrained"),+ note="all NMS maxima (data-dependent count)",+ ),+ case(+ "feature.DISK.heatmap_and_dense_descriptors",+ M,+ _disk,+ [IMG3_96],+ skip=_disk_err,+ method="heatmap_and_dense_descriptors",+ tags=("model", "pretrained"),+ note="dense head only",+ ),+]+_dedode, _dedode_err = try_build(+ "DeDoDe", lambda: KF.DeDoDe.from_pretrained("L-upright", "B-upright", amp_dtype=torch.float32)+)+CASES += [+ case(+ "feature.DeDoDe",+ M,+ _dedode,+ [IMG3_DEDODE],+ {"n": 64},+ skip=_dedode_err,+ tags=("model", "pretrained"),+ note="detector L-upright + descriptor B-upright (VGG19), float32; n=64",+ ),+ case(+ "feature.DeDoDe[no-imagenet-norm]",+ M,+ _dedode,+ [IMG3_DEDODE],+ {"n": 64, "apply_imagenet_normalization": False},+ skip=_dedode_err,+ tags=("model", "pretrained"),+ note="bypasses kornia.enhance.Normalize ONNX guard",+ ),+ case(+ "feature.DeDoDe.detect",+ M,+ _dedode,+ [IMG3_DEDODE],+ {"n": 64},+ skip=_dedode_err,+ method="detect",+ tags=("model", "pretrained"),+ ),+ case(+ "feature.DeDoDe.detect[no-imagenet-norm]",+ M,+ _dedode,+ [IMG3_DEDODE],+ {"n": 64, "apply_imagenet_normalization": False},+ skip=_dedode_err,+ method="detect",+ tags=("model", "pretrained"),+ ),+ case(+ "feature.DeDoDe.describe",+ M,+ _dedode,+ [IMG3_DEDODE, torch.rand(1, 64, 2) * 2 - 1],+ skip=_dedode_err,+ method="describe",+ tags=("model", "pretrained"),+ note="keypoints normalised [-1,1]",+ ),+ case(+ "feature.DeDoDe.describe[no-imagenet-norm]",+ M,+ _dedode,+ [IMG3_DEDODE, torch.rand(1, 64, 2) * 2 - 1],+ {"apply_imagenet_normalization": False},+ skip=_dedode_err,+ method="describe",+ tags=("model", "pretrained"),+ ),+]+_aliked, _aliked_err = try_build("ALIKED", lambda: KF.ALIKED.from_pretrained("aliked-t16", max_num_keypoints=64))+CASES += [+ case(+ "feature.ALIKED",+ M,+ ALIKEDWrap(_aliked) if _aliked else None,+ [IMG3_96],+ skip=_aliked_err,+ tags=("model", "pretrained"),+ note="aliked-t16; max_num_keypoints=64",+ ),+ case(+ "feature.ALIKED.forward_laf",+ M,+ _aliked,+ [IMG3_96],+ skip=_aliked_err,+ method="forward_laf",+ tags=("model", "pretrained"),+ ),+ case(+ "feature.ALIKED.extract_dense_map",+ M,+ _aliked,+ [IMG3_96],+ skip=_aliked_err,+ method="extract_dense_map",+ tags=("model", "pretrained"),+ note="dense backbone incl. deformable conv",+ ),+]+_xfeat, _xfeat_err = try_build("XFeat", lambda: KF.XFeat.from_pretrained(top_k=64))+CASES += [+ case(+ "feature.XFeatModel",+ M,+ _xfeat.net if _xfeat else None,+ [IMG3_96],+ skip=_xfeat_err,+ tags=("model", "pretrained"),+ note="dense backbone (feats, keypoints, heatmap); H,W %32",+ ),+ case(+ "feature.XFeat.detectAndCompute",+ M,+ _xfeat,+ [IMG3_96],+ skip=_xfeat_err,+ method="detectAndCompute",+ tags=("model", "pretrained"),+ note="top_k=64",+ ),+ case(+ "feature.XFeat.detectAndComputeDense",+ M,+ _xfeat,+ [IMG3_96],+ {"multiscale": False},+ skip=_xfeat_err,+ method="detectAndComputeDense",+ tags=("model", "pretrained"),+ ),+ case(+ "feature.XFeat.match_xfeat",+ M,+ _xfeat,+ [IMG3_96, torch.rand(1, 3, 64, 96)],+ skip=_xfeat_err,+ method="match_xfeat",+ tags=("model", "pretrained"),+ ),+ case(+ "feature.XFeat.match_xfeat_star",+ M,+ _xfeat,+ [IMG3_96, torch.rand(1, 3, 64, 96)],+ skip=_xfeat_err,+ method="match_xfeat_star",+ tags=("model", "pretrained"),+ ),+ case(+ "feature.InterpolateSparse2d",+ M,+ KF.InterpolateSparse2d("bicubic"),+ [torch.rand(1, 8, 16, 20), torch.rand(1, 6, 2) * torch.tensor([19.0, 15.0])],+ {"H": 16, "W": 20},+ note="H,W baked",+ ),+]+_sold2d, _sold2d_err = try_build("SOLD2_detector", lambda: KF.SOLD2_detector(pretrained=True))+_sold2, _sold2_err = try_build("SOLD2", lambda: KF.SOLD2(pretrained=True))+CASES += [+ case(+ "feature.SOLD2_detector",+ M,+ _sold2d,+ [IMG_BIG],+ skip=_sold2d_err,+ tags=("model", "pretrained"),+ note="weights sold2_wireframe.pth; returns list of line segments + heatmaps",+ ),+ case("feature.SOLD2", M, _sold2, [IMG_BIG], skip=_sold2_err, tags=("model", "pretrained")),+]+_defmo, _defmo_err = try_build("DeFMO", lambda: KF.DeFMO(pretrained=True))+CASES += [+ case(+ "feature.DeFMO",+ M,+ _defmo,+ [torch.rand(1, 6, 64, 96)],+ skip=_defmo_err,+ tags=("model", "pretrained"),+ note="weights encoder_best.pt + rendering_best.pt",+ ),+]++# ----------------------------------------------------------------------------- matchers+X = "feature.matching"+CASES += [+ case("feature.match_nn", X, KF.match_nn, [DESC1, DESC2]),+ case(+ "feature.match_nn[dm]",+ X,+ KF.match_nn,+ [DESC1, DESC2, torch.cdist(DESC1, DESC2)],+ note="dm passed live (bypasses torch.cdist)",+ ),+ case("feature.match_mnn", X, KF.match_mnn, [DESC1, DESC2]),+ case("feature.match_mnn[dm]", X, KF.match_mnn, [DESC1, DESC2, torch.cdist(DESC1, DESC2)], note="dm passed live"),+ case("feature.match_snn", X, KF.match_snn, [DESC1, DESC2], {"th": 0.8}),+ case("feature.match_smnn", X, KF.match_smnn, [DESC1, DESC2], {"th": 0.8}),+ case("feature.match_fginn", X, KF.match_fginn, [DESC1, DESC2, LAFS1, LAFS2], {"th": 0.8, "spatial_th": 10.0}),+ case(+ "feature.match_fginn[mutual]",+ X,+ KF.match_fginn,+ [DESC1, DESC2, LAFS1, LAFS2],+ {"th": 0.8, "spatial_th": 10.0, "mutual": True},+ ),+ case(+ "feature.match_adalam",+ X,+ KF.match_adalam,+ [DESC1, DESC2, LAFS1, LAFS2],+ {"hw1": (64, 80), "hw2": (64, 80)},+ note="hw baked",+ ),+ case("feature.DescriptorMatcher[nn]", X, KF.DescriptorMatcher("nn"), [DESC1, DESC2]),+ case("feature.DescriptorMatcher[snn]", X, KF.DescriptorMatcher("snn", 0.8), [DESC1, DESC2]),+ case("feature.DescriptorMatcher[smnn]", X, KF.DescriptorMatcher("smnn", 0.8), [DESC1, DESC2]),+ case(+ "feature.GeometryAwareDescriptorMatcher[fginn]",+ X,+ KF.GeometryAwareDescriptorMatcher("fginn"),+ [DESC1, DESC2, LAFS1, LAFS2],+ ),+ case(+ "feature.GeometryAwareDescriptorMatcher[adalam]",+ X,+ KF.GeometryAwareDescriptorMatcher("adalam"),+ [DESC1, DESC2, LAFS1, LAFS2],+ ),+ case(+ "feature.matching.DescriptorMatcherWithSteerer[global]",+ X,+ KF.matching.DescriptorMatcherWithSteerer(+ KF.steerers.DiscreteSteerer(torch.linalg.qr(torch.randn(128, 128))[0]), 4, "global", "smnn", 0.98+ ),+ [DESC1, DESC2],+ {"normalize": True},+ ),+ case(+ "feature.matching.DescriptorMatcherWithSteerer[local]",+ X,+ KF.matching.DescriptorMatcherWithSteerer(+ KF.steerers.DiscreteSteerer(torch.linalg.qr(torch.randn(128, 128))[0]), 4, "local", "smnn", 0.98+ ),+ [DESC1, DESC2],+ {"normalize": True},+ ),+]++_loftr, _loftr_err = try_build("LoFTR", lambda: KF.LoFTR(pretrained="outdoor"))+CASES += [+ case(+ "feature.LoFTR",+ X,+ DictPair(_loftr) if _loftr else None,+ [IMG_BIG, torch.rand(1, 1, 64, 80)],+ skip=_loftr_err,+ tags=("model", "pretrained"),+ note="weights loftr_outdoor.ckpt; gray 1x1x64x80 pair",+ ),+]+_lg, _lg_err = try_build("LightGlue", lambda: KF.LightGlue("disk").eval())+_lg_np, _lg_np_err = try_build(+ "LightGlue[no-prune]", lambda: KF.LightGlue("disk", depth_confidence=-1, width_confidence=-1, flash=False).eval()+)+++def _lg_call(m):+ return lambda k0, d0, k1, d1, s: m(+ {+ "image0": {"keypoints": k0, "descriptors": d0, "image_size": s},+ "image1": {"keypoints": k1, "descriptors": d1, "image_size": s},+ }+ )+++CASES += [+ case(+ "feature.LightGlue",+ X,+ LGWrap(_lg) if _lg else None,+ [KPTS0, DESC1[None], KPTS1, DESC2[None], IMG_SIZE],+ skip=_lg_err,+ tags=("model", "pretrained"),+ note="disk weights; default conf (depth/width confidence early-exit)",+ ),+ case(+ "feature.LightGlue[no-prune]",+ X,+ LGWrap(_lg_np) if _lg_np else None,+ [KPTS0, DESC1[None], KPTS1, DESC2[None], IMG_SIZE],+ skip=_lg_np_err,+ tags=("model", "pretrained"),+ note="depth_confidence=-1, width_confidence=-1, flash=False",+ ),+]+_lgm, _lgm_err = try_build("LightGlueMatcher", lambda: KF.LightGlueMatcher("disk").eval())+CASES += [+ case(+ "feature.LightGlueMatcher",+ X,+ _lgm,+ [DESC1, DESC2, LAFS1, LAFS2],+ {"hw1": (64, 80), "hw2": (64, 80)},+ skip=_lgm_err,+ tags=("model", "pretrained"),+ note="hw baked",+ ),+]+_lfm, _lfm_err = try_build(+ "LocalFeatureMatcher",+ lambda: KF.LocalFeatureMatcher(KF.SIFTFeature(num_features=32), KF.DescriptorMatcher("snn", 0.9)),+)+CASES += [+ case(+ "feature.LocalFeatureMatcher",+ X,+ DictPair(_lfm) if _lfm else None,+ [IMG_BIG, torch.rand(1, 1, 64, 80)],+ skip=_lfm_err,+ note="SIFTFeature(32) + snn matcher; dict in/out",+ ),+ case(+ "feature.OnnxLightGlue",+ X,+ None,+ [],+ skip="already an onnxruntime wrapper (loads fabio-sim LightGlue-ONNX *_fused.onnx graphs); not a torch module",+ ),+ case("feature.DISKFeatures", M, None, [], skip="dataclass output container (no forward)"),+ case("feature.ALIKEDFeatures", M, None, [], skip="dataclass output container (no forward)"),+ case("feature.scale_space_detector.get_default_detector_config", T, None, [], skip="returns a Python dict"),+]++if __name__ == "__main__":+ run_cases(CASES, sys.argv[1], only=sys.argv[2:] or None)diff --git a/docs/export_support/cases_geomA.py b/docs/export_support/cases_geomA.pynew file mode 100644index 000000000..450916f89--- /dev/null+++ b/docs/export_support/cases_geomA.py@@ -0,0 +1,1237 @@+# LICENSE HEADER MANAGED BY add-license-header+#+# Copyright 2018 Kornia Team+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+#++"""ONNX export survey β area geomA: kornia.geometry.transform / grid / bbox / boxes / keypoints / subpix /+line / plane / ray / vector / pose."""++import math+import sys++import torch+from harness import case, run_cases++import kornia as K+import kornia.geometry.transform as T+from kornia.geometry.bbox import (+ bbox_generator,+ bbox_generator3d,+ bbox_to_mask,+ bbox_to_mask3d,+ infer_bbox_shape,+ infer_bbox_shape3d,+ nms,+ transform_bbox,+ validate_bbox,+ validate_bbox3d,+)+from kornia.geometry.boxes import Boxes, Boxes3D, VideoBoxes+from kornia.geometry.grid import create_meshgrid, create_meshgrid3d+from kornia.geometry.keypoints import Keypoints, Keypoints3D+from kornia.geometry.line import ParametrizedLine, fit_line+from kornia.geometry.plane import Hyperplane, fit_plane+from kornia.geometry.pose import NamedPose+from kornia.geometry.ray import Ray+from kornia.geometry.subpix import (+ AdaptiveQuadInterp3d,+ ConvQuadInterp3d,+ ConvSoftArgmax2d,+ ConvSoftArgmax3d,+ IterativeQuadInterp3d,+ NonMaximaSuppression2d,+ NonMaximaSuppression3d,+ SpatialSoftArgmax2d,+ conv_quad_interp3d,+ conv_soft_argmax2d,+ conv_soft_argmax3d,+ iterative_quad_interp3d,+ nms2d,+ nms3d,+ nms3d_minmax,+ render_gaussian2d,+ spatial_expectation2d,+ spatial_soft_argmax2d,+ spatial_softmax2d,+)+from kornia.geometry.vector import Scalar, Vector2, Vector3++torch.manual_seed(0)++# ----------------------------------------------------------------------------- shared inputs+B, C, H, W = 1, 3, 32, 40+img = torch.rand(B, C, H, W)+img2 = torch.rand(2, 3, 48, 64)+vol = torch.rand(1, 1, 8, 16, 16)++# 2D transforms+center2d = torch.tensor([[W / 2.0, H / 2.0]])+angle = torch.tensor([15.0])+scale2 = torch.tensor([[1.1, 0.9]])+trans2 = torch.tensor([[3.0, -2.0]])+shear2 = torch.tensor([[0.1, 0.05]])+aff23 = T.get_affine_matrix2d(trans2, center2d, scale2, angle, sx=shear2[:, 0], sy=shear2[:, 1])[:, :2, :] # (1,2,3)+homo33 = T.get_affine_matrix2d(trans2, center2d, scale2, angle) # (1,3,3)+homo33_pert = homo33.clone()+homo33_pert[:, 2, 0] = 1e-3+homo33_pert[:, 2, 1] = -5e-4+# normalized homography (pixel -> normalized [-1,1] coordinates) for homography_warp with normalized_homography=True+homo_norm = K.geometry.conversions.normalize_homography(homo33_pert, (H, W), (H, W))++# 3D transforms+D3, H3, W3 = 8, 16, 16+center3d = torch.tensor([[W3 / 2.0, H3 / 2.0, D3 / 2.0]])+angles3 = torch.tensor([[10.0, -5.0, 8.0]])+scale3 = torch.tensor([[1.05, 0.95, 1.0]])+trans3 = torch.tensor([[0.5, -0.5, 0.3]])+aff44_3d = T.get_affine_matrix3d(trans3, center3d, scale3, angles3) # (1,4,4)+aff34_3d = aff44_3d[:, :3, :] # (1,3,4)+proj34 = T.get_projective_transform(center3d, angles3, scale3) # (1,3,4)++# points / corners+src_pts = torch.tensor([[[2.0, 3.0], [36.0, 2.0], [37.0, 29.0], [3.0, 28.0]]]) # (1,4,2)+dst_pts = torch.tensor([[[0.0, 0.0], [W - 1.0, 0.0], [W - 1.0, H - 1.0], [0.0, H - 1.0]]])+src_pts3d = torch.tensor(+ [+ [+ [1.0, 1.0, 1.0],+ [14.0, 1.0, 1.0],+ [14.0, 14.0, 1.0],+ [1.0, 14.0, 1.0],+ [1.0, 1.0, 6.0],+ [14.0, 1.0, 6.0],+ [14.0, 14.0, 6.0],+ [1.0, 14.0, 6.0],+ ]+ ]+) # (1,8,3)+dst_pts3d = torch.tensor(+ [+ [+ [0.0, 0.0, 0.0],+ [W3 - 1.0, 0.0, 0.0],+ [W3 - 1.0, H3 - 1.0, 0.0],+ [0.0, H3 - 1.0, 0.0],+ [0.0, 0.0, D3 - 1.0],+ [W3 - 1.0, 0.0, D3 - 1.0],+ [W3 - 1.0, H3 - 1.0, D3 - 1.0],+ [0.0, H3 - 1.0, D3 - 1.0],+ ]+ ]+)+# tps+tps_src = torch.tensor([[[-0.8, -0.8], [0.8, -0.8], [0.8, 0.8], [-0.8, 0.8], [0.0, 0.0]]]) # (1,5,2) normalized+tps_dst = tps_src + 0.05 * torch.randn(1, 5, 2)+tps_kernel_w, tps_affine_w = T.get_tps_transform(tps_src, tps_dst)++# remap maps (pixel coordinates)+grid_px = create_meshgrid(H, W, normalized_coordinates=False) # (1,H,W,2)+map_x = grid_px[..., 0] + 1.5+map_y = grid_px[..., 1] - 0.7++# boxes+boxes_xyxy = torch.tensor([[[2.0, 3.0, 20.0, 25.0], [10.0, 5.0, 35.0, 30.0]]]) # (1,2,4)+boxes_quad = Boxes.from_tensor(boxes_xyxy, mode="xyxy").data # (1,2,4,2)+boxes3d_xyzxyz = torch.tensor([[[1.0, 2.0, 1.0, 10.0, 12.0, 6.0], [3.0, 3.0, 2.0, 14.0, 14.0, 7.0]]]) # (1,2,6)+boxes3d_hexa = Boxes3D.from_tensor(boxes3d_xyzxyz, mode="xyzxyz").data # (1,2,8,3)+nms_boxes = torch.tensor([[10.0, 10.0, 20.0, 20.0], [15.0, 5.0, 15.0, 25.0], [100.0, 100.0, 150.0, 150.0]])+nms_scores = torch.tensor([0.9, 0.8, 0.7])+kpts = torch.tensor([[[5.0, 6.0], [20.0, 10.0], [30.0, 25.0]]]) # (1,3,2)+kpts3d = torch.tensor([[[5.0, 6.0, 2.0], [10.0, 10.0, 4.0], [12.0, 3.0, 6.0]]]) # (1,3,3)++# subpix+heat = torch.rand(1, 2, 16, 24)+heat3d = torch.rand(1, 1, 5, 16, 24) # scale-space (B, C, D=levels, H, W)++# lines / planes+line_pts = torch.stack([torch.linspace(0, 5, 10), 2 * torch.linspace(0, 5, 10) + 1], -1)[None] + 0.01 * torch.randn(+ 1, 10, 2+)+plane_pts = torch.randn(20, 3)+plane_pts[:, 2] = 0.3 * plane_pts[:, 0] - 0.2 * plane_pts[:, 1] + 1.0 + 0.01 * torch.randn(20)+p3 = torch.tensor([1.0, 2.0, 3.0])+q3 = torch.tensor([4.0, 5.0, 7.0])+v3 = torch.randn(4, 3)++# pose+Rt = aff44_3d.clone() # not orthonormal (has scale) -> build a proper SE3 from axis-angle+so3 = K.geometry.liegroup.So3.exp(torch.tensor([[0.1, 0.2, -0.1]]))+pose44 = torch.eye(4)[None].repeat(1, 1, 1)+pose44[:, :3, :3] = so3.matrix()+pose44[:, :3, 3] = torch.tensor([[0.5, -1.0, 2.0]])+pts3 = torch.randn(1, 6, 3)+++# ----------------------------------------------------------------------------- cases+G = "geometry.transform"+CASES = [+ # ---- 2D warps+ case(+ "transform.warp_perspective", G, T.warp_perspective, [img, homo33_pert], {"dsize": (H, W)}, note="dsize baked"+ ),+ case(+ "transform.warp_perspective[nearest,border]",+ G,+ T.warp_perspective,+ [img, homo33_pert],+ {"dsize": (H, W), "mode": "nearest", "padding_mode": "border"},+ note="dsize baked",+ ),+ case(+ "transform.warp_perspective[fill]",+ G,+ lambda x, M, fv: T.warp_perspective(x, M, dsize=(H, W), padding_mode="fill", fill_value=fv),+ [img, homo33_pert, torch.tensor([0.2, 0.4, 0.6])],+ note="padding_mode=fill; fill_value live input; dsize baked",+ ),+ case(+ "transform.warp_perspective[batch2,resize]",+ G,+ T.warp_perspective,+ [img2, homo33_pert.repeat(2, 1, 1)],+ {"dsize": (24, 30)},+ tags=("batch>1",),+ note="dsize != input size",+ ),+ case("transform.warp_affine", G, T.warp_affine, [img, aff23], {"dsize": (H, W)}, note="dsize baked"),+ case(+ "transform.warp_affine[align_corners=False,reflection]",+ G,+ T.warp_affine,+ [img, aff23],+ {"dsize": (H, W), "align_corners": False, "padding_mode": "reflection"},+ ),+ case(+ "transform.warp_affine[fill]",+ G,+ lambda x, M, fv: T.warp_affine(x, M, dsize=(H, W), padding_mode="fill", fill_value=fv),+ [img, aff23, torch.tensor([0.5, 0.5, 0.5])],+ note="fill_value live input; dsize baked",+ ),+ case(+ "transform.warp_grid",+ G,+ T.warp_grid,+ [create_meshgrid(H, W, normalized_coordinates=True), homo_norm],+ note="grid is a live input (1,H,W,2)",+ ),+ case("transform.remap", G, T.remap, [img, map_x, map_y], {"align_corners": True}),+ case(+ "transform.remap[normalized,nearest]",+ G,+ T.remap,+ [img, (map_x / (W - 1)) * 2 - 1, (map_y / (H - 1)) * 2 - 1],+ {"align_corners": True, "normalized_coordinates": True, "mode": "nearest"},+ ),+ case(+ "transform.homography_warp",+ G,+ T.homography_warp,+ [img, homo_norm],+ {"dsize": (H, W)},+ note="normalized homography; dsize baked",+ ),+ case(+ "transform.homography_warp[pixel_homography]",+ G,+ T.homography_warp,+ [img, homo33_pert],+ {"dsize": (H, W), "normalized_coordinates": False, "normalized_homography": False},+ ),+ case("transform.get_tps_transform", G, T.get_tps_transform, [tps_src, tps_dst], tags=("points",)),+ case(+ "transform.warp_points_tps",+ G,+ T.warp_points_tps,+ [torch.rand(1, 7, 2) * 1.6 - 0.8, tps_src, tps_kernel_w, tps_affine_w],+ tags=("points",),+ note="query points distinct from kernel centers",+ ),+ case(+ "transform.warp_points_tps[at_centers]",+ G,+ T.warp_points_tps,+ [tps_src.clone(), tps_src, tps_kernel_w, tps_affine_w],+ tags=("points",),+ note="query points == kernel centers (zero distance) -> exercises the eps guard in _kernel_distance",+ ),+ case("transform.warp_image_tps", G, T.warp_image_tps, [img, tps_src, tps_kernel_w, tps_affine_w]),+ case(+ "transform.elastic_transform2d",+ G,+ T.elastic_transform2d,+ [img, torch.rand(1, 2, H, W) * 2 - 1],+ {"kernel_size": (31, 31), "sigma": (8.0, 8.0), "alpha": (1.0, 1.0)},+ note="noise is live input; kernel/sigma/alpha baked",+ ),+ case(+ "transform.elastic_transform2d[tensor_sigma_alpha]",+ G,+ lambda x, n, s, a: T.elastic_transform2d(x, n, kernel_size=(31, 31), sigma=s, alpha=a),+ [img, torch.rand(1, 2, H, W) * 2 - 1, torch.tensor([8.0, 8.0]), torch.tensor([1.0, 1.0])],+ note="sigma/alpha as live tensors; kernel_size baked",+ ),+ # ---- 2D affine family+ case("transform.affine", G, T.affine, [img, aff23]),+ case("transform.rotate", G, T.rotate, [img, angle]),+ case("transform.rotate[center]", G, T.rotate, [img, angle, center2d]),+ case("transform.translate", G, T.translate, [img, trans2]),+ case("transform.scale", G, T.scale, [img, scale2]),+ case("transform.scale[scalar]", G, T.scale, [img, torch.tensor([1.2])]),+ case("transform.shear", G, T.shear, [img, shear2]),+ case("transform.hflip", G, T.hflip, [img]),+ case("transform.vflip", G, T.vflip, [img]),+ case("transform.rot180", G, T.rot180, [img]),+ case("transform.resize", G, T.resize, [img], {"size": (24, 30)}, note="size baked"),+ case("transform.resize[int,side=short]", G, T.resize, [img], {"size": 16, "side": "short"}, note="size=int baked"),+ case("transform.resize[nearest]", G, T.resize, [img], {"size": (24, 30), "interpolation": "nearest"}),+ case(+ "transform.resize[bicubic,align_corners]",+ G,+ T.resize,+ [img],+ {"size": (24, 30), "interpolation": "bicubic", "align_corners": True},+ ),+ case("transform.resize[antialias,area]", G, T.resize, [img], {"size": (16, 20), "antialias": True}),+ case(+ "transform.resize_to_be_divisible",+ G,+ T.resize_to_be_divisible,+ [img],+ {"divisible_factor": 14},+ note="factor baked; output size fixed at trace",+ ),+ case("transform.rescale", G, T.rescale, [img], {"factor": 0.5}),+ case("transform.rescale[tuple]", G, T.rescale, [img], {"factor": (1.5, 0.75)}),+ # ---- pyramids+ case("transform.pyrdown", G, T.pyrdown, [img]),+ case("transform.pyrdown[factor=3]", G, T.pyrdown, [img], {"factor": 3.0}),+ case("transform.pyrup", G, T.pyrup, [img]),+ case(+ "transform.build_pyramid",+ G,+ T.build_pyramid,+ [img2],+ {"max_level": 3},+ tags=("batch>1",),+ note="returns list of 3 tensors",+ ),+ case(+ "transform.build_laplacian_pyramid",+ G,+ T.build_laplacian_pyramid,+ [img2],+ {"max_level": 3},+ tags=("batch>1",),+ note="returns list of 3 tensors",+ ),+ case("transform.PyrDown", G, T.PyrDown(), [img]),+ case("transform.PyrUp", G, T.PyrUp(), [img]),+ case(+ "transform.ScalePyramid",+ G,+ T.ScalePyramid(n_levels=3, min_size=15),+ [torch.rand(1, 1, 48, 64)],+ note="returns (pyramid list, sigmas list, pixel_dists list) flattened",+ ),+ case(+ "transform.ScalePyramid[double_image]",+ G,+ T.ScalePyramid(n_levels=3, min_size=15, double_image=True),+ [torch.rand(1, 1, 32, 40)],+ ),+ # ---- 3D warps+ case("transform.warp_affine3d", G, T.warp_affine3d, [vol, aff34_3d], {"dsize": (D3, H3, W3)}, tags=("3d",)),+ case(+ "transform.warp_affine3d[nearest]",+ G,+ T.warp_affine3d,+ [vol, aff34_3d],+ {"dsize": (D3, H3, W3), "flags": "nearest", "align_corners": False},+ tags=("3d",),+ ),+ case(+ "transform.warp_perspective3d", G, T.warp_perspective3d, [vol, aff44_3d], {"dsize": (D3, H3, W3)}, tags=("3d",)+ ),+ case(+ "transform.warp_grid3d",+ G,+ T.warp_grid3d,+ [+ create_meshgrid3d(D3, H3, W3, normalized_coordinates=True),+ K.geometry.conversions.normalize_homography3d(aff44_3d, (D3, H3, W3), (D3, H3, W3)),+ ],+ tags=("3d",),+ ),+ case(+ "transform.homography_warp3d",+ G,+ T.homography_warp3d,+ [vol, K.geometry.conversions.normalize_homography3d(aff44_3d, (D3, H3, W3), (D3, H3, W3))],+ {"dsize": (D3, H3, W3)},+ tags=("3d",),+ ),+ case("transform.affine3d", G, T.affine3d, [vol, aff34_3d], tags=("3d",)),+ case(+ "transform.rotate3d",+ G,+ T.rotate3d,+ [vol, torch.tensor([10.0]), torch.tensor([-5.0]), torch.tensor([8.0])],+ tags=("3d",),+ ),+ case(+ "transform.rotate3d[center]",+ G,+ T.rotate3d,+ [vol, torch.tensor([10.0]), torch.tensor([-5.0]), torch.tensor([8.0]), center3d],+ tags=("3d",),+ ),+ # ---- matrix helpers+ case("transform.get_perspective_transform", G, T.get_perspective_transform, [src_pts, dst_pts], tags=("points",)),+ case(+ "transform.get_perspective_transform3d",+ G,+ T.get_perspective_transform3d,+ [src_pts3d, dst_pts3d],+ tags=("points", "3d"),+ ),+ case(+ "transform.get_projective_transform", G, T.get_projective_transform, [center3d, angles3, scale3], tags=("3d",)+ ),+ case("transform.get_rotation_matrix2d", G, T.get_rotation_matrix2d, [center2d, angle, scale2]),+ case("transform.get_translation_matrix2d", G, T.get_translation_matrix2d, [trans2]),+ case("transform.get_shear_matrix2d", G, T.get_shear_matrix2d, [center2d, shear2[:, 0], shear2[:, 1]]),+ case("transform.get_shear_matrix2d[sx_only]", G, T.get_shear_matrix2d, [center2d, shear2[:, 0]]),+ case(+ "transform.get_shear_matrix3d",+ G,+ T.get_shear_matrix3d,+ [+ center3d,+ torch.tensor([0.1]),+ torch.tensor([0.05]),+ torch.tensor([-0.05]),+ torch.tensor([0.02]),+ torch.tensor([0.03]),+ torch.tensor([-0.02]),+ ],+ tags=("3d",),+ ),+ case("transform.get_affine_matrix2d", G, T.get_affine_matrix2d, [trans2, center2d, scale2, angle]),+ case(+ "transform.get_affine_matrix2d[shear]",+ G,+ T.get_affine_matrix2d,+ [trans2, center2d, scale2, angle, shear2[:, 0], shear2[:, 1]],+ ),+ case("transform.get_affine_matrix3d", G, T.get_affine_matrix3d, [trans3, center3d, scale3, angles3], tags=("3d",)),+ case(+ "transform.get_affine_matrix3d[shear]",+ G,+ T.get_affine_matrix3d,+ [+ trans3,+ center3d,+ scale3,+ angles3,+ torch.tensor([0.1]),+ torch.tensor([0.05]),+ torch.tensor([-0.05]),+ torch.tensor([0.02]),+ torch.tensor([0.03]),+ torch.tensor([-0.02]),+ ],+ tags=("3d",),+ ),+ case("transform.invert_affine_transform", G, T.invert_affine_transform, [aff23]),+ case(+ "transform.projection_from_Rt",+ G,+ T.projection_from_Rt,+ [so3.matrix(), torch.tensor([[[0.5], [-1.0], [2.0]]])],+ tags=("3d",),+ ),+ # ---- crops 2D+ case(+ "transform.crop_by_indices",+ G,+ T.crop_by_indices,+ [img, src_pts],+ note="size inferred from box (data-dependent)",+ ),+ case(+ "transform.crop_by_indices[size]", G, T.crop_by_indices, [img, src_pts], {"size": (20, 24)}, note="size baked"+ ),+ case("transform.crop_by_boxes", G, T.crop_by_boxes, [img, src_pts, dst_pts]),+ case("transform.crop_by_transform_mat", G, T.crop_by_transform_mat, [img, homo33], {"out_size": (H, W)}),+ case("transform.center_crop", G, T.center_crop, [img], {"size": (20, 24)}),+ case("transform.crop_and_resize", G, T.crop_and_resize, [img, src_pts], {"size": (20, 24)}),+ case("transform.CenterCrop2D", G, T.CenterCrop2D((20, 24)), [img]),+ case("transform.CenterCrop2D[resample]", G, T.CenterCrop2D((20, 24), cropping_mode="resample"), [img]),+ # ---- crops 3D+ case("transform.crop_by_boxes3d", G, T.crop_by_boxes3d, [vol, src_pts3d, dst_pts3d], tags=("3d",)),+ case(+ "transform.crop_by_transform_mat3d",+ G,+ T.crop_by_transform_mat3d,+ [vol, aff44_3d],+ {"out_size": (D3, H3, W3)},+ tags=("3d",),+ ),+ case("transform.center_crop3d", G, T.center_crop3d, [vol], {"size": (6, 12, 12)}, tags=("3d",)),+ case("transform.crop_and_resize3d", G, T.crop_and_resize3d, [vol, src_pts3d], {"size": (6, 12, 12)}, tags=("3d",)),+ # ---- modules+ case("transform.Rotate", G, T.Rotate(angle), [img], note="angle is a module constant"),+ case("transform.Translate", G, T.Translate(trans2), [img]),+ case("transform.Scale", G, T.Scale(scale2), [img]),+ case("transform.Shear", G, T.Shear(shear2), [img]),+ case("transform.Affine", G, T.Affine(angle=angle, translation=trans2, scale_factor=scale2, shear=shear2), [img]),+ case("transform.Hflip", G, T.Hflip(), [img]),+ case("transform.Vflip", G, T.Vflip(), [img]),+ case("transform.Rot180", G, T.Rot180(), [img]),+ case("transform.Resize", G, T.Resize((24, 30)), [img]),+ case("transform.Resize[int]", G, T.Resize(24, side="long"), [img]),+ case("transform.Rescale", G, T.Rescale(0.5), [img]),+ case("transform.HomographyWarper", G, T.HomographyWarper(H, W), [img, homo_norm], note="normalized homography"),+ case(+ "transform.HomographyWarper[pixel]",+ G,+ T.HomographyWarper(H, W, normalized_coordinates=False),+ [img, homo33_pert],+ ),+ case(+ "transform.HomographyWarper[precomputed]",+ G,+ None,+ [],+ skip="precompute_warp_grid path stores grid as state; "+ "same graph as HomographyWarper with the homography folded into a constant",+ ),+ case("transform.BaseWarper", G, None, [], skip="abstract base class"),+ case("transform.ImageRegistrator", G, None, [], skip="optimizer loop (Adam over num_iterations) β not a graph"),+ case(+ "transform.image_registrator.Homography",+ G,+ lambda d: T.Homography()(),+ [torch.zeros(1)],+ note="parametric model; forward() takes no input, graph is fully constant",+ ),+ case(+ "transform.image_registrator.Similarity",+ G,+ lambda d: T.Similarity()(),+ [torch.zeros(1)],+ note="parametric model; forward() takes no input, graph is fully constant",+ ),+ case(+ "transform.image_registrator.Homography.forward_inverse",+ G,+ lambda d: T.Homography().forward_inverse(),+ [torch.zeros(1)],+ note="torch.inverse on 3x3 parameter",+ ),+ case("transform.image_registrator.BaseModel", G, None, [], skip="abstract base class"),+]++# ----------------------------------------------------------------------------- grid+G = "geometry.grid"+CASES += [+ case(+ "grid.create_meshgrid",+ G,+ lambda d: create_meshgrid(16, 24, device=d.device, dtype=d.dtype),+ [torch.zeros(1)],+ note="H,W baked; graph is fully constant",+ ),+ case(+ "grid.create_meshgrid[pixel]",+ G,+ lambda d: create_meshgrid(16, 24, normalized_coordinates=False, device=d.device, dtype=d.dtype),+ [torch.zeros(1)],+ note="H,W baked",+ ),+ case(+ "grid.create_meshgrid3d",+ G,+ lambda d: create_meshgrid3d(4, 16, 24, device=d.device, dtype=d.dtype),+ [torch.zeros(1)],+ tags=("3d",),+ note="D,H,W baked",+ ),+ case(+ "grid.create_meshgrid[dynamic_from_input]",+ G,+ lambda x: (+ create_meshgrid(x.shape[-2], x.shape[-1], device=x.device, dtype=x.dtype) + 0 * x[:, :1].permute(0, 2, 3, 1)+ ),+ [img],+ note="H,W taken from input shape; still static under export",+ ),+]++# ----------------------------------------------------------------------------- bbox+G = "geometry.bbox"+CASES += [+ case(+ "bbox.bbox_generator",+ G,+ bbox_generator,+ [torch.tensor([2.0, 5.0]), torch.tensor([3.0, 4.0]), torch.tensor([10.0, 12.0]), torch.tensor([8.0, 9.0])],+ ),+ case(+ "bbox.bbox_generator3d",+ G,+ bbox_generator3d,+ [+ torch.tensor([2.0]),+ torch.tensor([3.0]),+ torch.tensor([1.0]),+ torch.tensor([10.0]),+ torch.tensor([8.0]),+ torch.tensor([4.0]),+ ],+ tags=("3d",),+ ),+ case(+ "bbox.bbox_to_mask",+ G,+ bbox_to_mask,+ [boxes_quad[0]],+ {"width": W, "height": H},+ note="H,W baked; input (N,4,2)",+ ),+ case(+ "bbox.bbox_to_mask3d",+ G,+ bbox_to_mask3d,+ [boxes3d_hexa[0]],+ {"size": (D3, H3, W3)},+ tags=("3d",),+ note="size baked; input (N,8,3)",+ ),+ case("bbox.infer_bbox_shape", G, infer_bbox_shape, [boxes_quad[0]]),+ case("bbox.infer_bbox_shape3d", G, infer_bbox_shape3d, [boxes3d_hexa[0]], tags=("3d",)),+ case("bbox.transform_bbox", G, transform_bbox, [homo33, boxes_xyxy], note="mode=xyxy default (B,N,4)"),+ case(+ "bbox.transform_bbox[xywh]",+ G,+ transform_bbox,+ [homo33, torch.tensor([[[2.0, 3.0, 18.0, 22.0], [10.0, 5.0, 25.0, 25.0]]])],+ {"mode": "xywh"},+ ),+ case("bbox.transform_bbox[polygon]", G, transform_bbox, [homo33, boxes_quad], note="(B,N,4,2) polygon input"),+ case(+ "bbox.nms",+ G,+ nms,+ [nms_boxes, nms_scores],+ {"iou_threshold": 0.5},+ note="data-dependent output size (keep indices); iou_threshold baked",+ ),+ case("bbox.validate_bbox", G, validate_bbox, [boxes_quad[0]], note="returns Python bool"),+ case("bbox.validate_bbox3d", G, validate_bbox3d, [boxes3d_hexa[0]], tags=("3d",), note="returns Python bool"),+]++# ----------------------------------------------------------------------------- boxes+G = "geometry.boxes"+CASES += [+ case("boxes.Boxes.from_tensor[xyxy]", G, lambda b: Boxes.from_tensor(b, mode="xyxy").data, [boxes_xyxy]),+ case(+ "boxes.Boxes.from_tensor[xywh]",+ G,+ lambda b: Boxes.from_tensor(b, mode="xywh").data,+ [torch.tensor([[[2.0, 3.0, 18.0, 22.0], [10.0, 5.0, 25.0, 25.0]]])],+ ),+ case("boxes.Boxes.from_tensor[xyxy_plus]", G, lambda b: Boxes.from_tensor(b, mode="xyxy_plus").data, [boxes_xyxy]),+ case("boxes.Boxes.from_tensor[vertices]", G, lambda b: Boxes.from_tensor(b, mode="vertices").data, [boxes_quad]),+ case(+ "boxes.Boxes.from_tensor[no_validate]",+ G,+ lambda b: Boxes.from_tensor(b, mode="xyxy", validate_boxes=False).data,+ [boxes_xyxy],+ note="validate_boxes=False skips the data-dependent assertion",+ ),+ case("boxes.Boxes.to_tensor[xyxy]", G, lambda b: Boxes(b, mode="vertices_plus").to_tensor("xyxy"), [boxes_quad]),+ case("boxes.Boxes.to_tensor[xywh]", G, lambda b: Boxes(b, mode="vertices_plus").to_tensor("xywh"), [boxes_quad]),+ case(+ "boxes.Boxes.to_tensor[vertices]",+ G,+ lambda b: Boxes(b, mode="vertices_plus").to_tensor("vertices"),+ [boxes_quad],+ ),+ case("boxes.Boxes.get_boxes_shape", G, lambda b: Boxes(b, mode="vertices_plus").get_boxes_shape(), [boxes_quad]),+ case("boxes.Boxes.compute_area", G, lambda b: Boxes(b, mode="vertices_plus").compute_area(), [boxes_quad]),+ case(+ "boxes.Boxes.to_mask", G, lambda b: Boxes(b, mode="vertices_plus").to_mask(H, W), [boxes_quad], note="H,W baked"+ ),+ case(+ "boxes.Boxes.transform_boxes",+ G,+ lambda b, M: Boxes(b, mode="vertices_plus").transform_boxes(M).data,+ [boxes_quad, homo33],+ ),+ case(+ "boxes.Boxes.transform_boxes_",+ G,+ lambda b, M: Boxes(b, mode="vertices_plus").transform_boxes_(M).data,+ [boxes_quad, homo33],+ ),+ case(+ "boxes.Boxes.translate",+ G,+ lambda b, s: Boxes(b, mode="vertices_plus").translate(s).data,+ [boxes_quad, torch.tensor([[3.0, -2.0]])],+ ),+ case(+ "boxes.Boxes.translate[fast]",+ G,+ None,+ [],+ skip="NotImplementedError stub (kornia/geometry/boxes.py:759, method='fast')",+ ),+ case(+ "boxes.Boxes.clamp[tuple]",+ G,+ None,+ [],+ skip="NotImplementedError stub for tuple bounds (kornia/geometry/boxes.py:391)",+ ),+ case(+ "boxes.Boxes.clamp[tensor]",+ G,+ lambda b, tl, br: Boxes(b, mode="vertices_plus").clamp(tl, br).data,+ [boxes_quad, torch.tensor([[5.0, 5.0]]), torch.tensor([[30.0, 20.0]])],+ note="bounds (B,2) tensors",+ ),+ case(+ "boxes.Boxes.pad",+ G,+ lambda b, p: Boxes(b, mode="vertices_plus").pad(p).data,+ [boxes_quad, torch.tensor([[2, 2, 3, 3]])],+ note="padding_size (B,4) int",+ ),+ case(+ "boxes.Boxes.unpad",+ G,+ lambda b, p: Boxes(b, mode="vertices_plus").unpad(p).data,+ [boxes_quad, torch.tensor([[2, 2, 3, 3]])],+ ),+ case("boxes.Boxes.trim", G, None, [], skip="NotImplementedError stub (kornia/geometry/boxes.py:442)"),+ case(+ "boxes.Boxes.filter_boxes_by_area",+ G,+ lambda b: Boxes(b, mode="vertices_plus").filter_boxes_by_area(min_area=100.0).data,+ [boxes_quad],+ note="zeros out boxes outside range",+ ),+ case(+ "boxes.Boxes.merge",+ G,+ lambda a, b: Boxes(a, mode="vertices_plus").merge(Boxes(b, mode="vertices_plus")).data,+ [boxes_quad, boxes_quad + 1.0],+ ),+ case(+ "boxes.Boxes.index_put",+ G,+ lambda b, v: Boxes(b, mode="vertices_plus").index_put((torch.tensor([0]), torch.tensor([1])), v).data,+ [boxes_quad, boxes_quad[0, :1]],+ note="indices baked as constants",+ ),+ case("boxes.Boxes.clone", G, lambda b: Boxes(b, mode="vertices_plus").clone().data, [boxes_quad]),+ case("boxes.Boxes.type", G, lambda b: Boxes(b, mode="vertices_plus").type(torch.float64).data, [boxes_quad]),+ case("boxes.Boxes.to_tensor[list_input]", G, None, [], skip="input is a Python list of tensors (ragged batch)"),+ case(+ "boxes.Boxes.to_tensor[as_padded_sequence]",+ G,+ None,+ [],+ skip="ragged list path; returns Python list of tensors",+ ),+ case(+ "boxes.Boxes3D.from_tensor[xyzxyz]",+ G,+ lambda b: Boxes3D.from_tensor(b, mode="xyzxyz").data,+ [boxes3d_xyzxyz],+ tags=("3d",),+ ),+ case(+ "boxes.Boxes3D.from_tensor[xyzwhd]",+ G,+ lambda b: Boxes3D.from_tensor(b, mode="xyzwhd").data,+ [torch.tensor([[[1.0, 2.0, 1.0, 9.0, 10.0, 5.0]]])],+ tags=("3d",),+ ),+ case(+ "boxes.Boxes3D.to_tensor[xyzxyz]",+ G,+ lambda b: Boxes3D(b, mode="xyzxyz_plus").to_tensor("xyzxyz"),+ [boxes3d_hexa],+ tags=("3d",),+ ),+ case(+ "boxes.Boxes3D.to_tensor[xyzwhd]",+ G,+ lambda b: Boxes3D(b, mode="xyzxyz_plus").to_tensor("xyzwhd"),+ [boxes3d_hexa],+ tags=("3d",),+ ),+ case(+ "boxes.Boxes3D.to_tensor[vertices]",+ G,+ lambda b: Boxes3D(b, mode="xyzxyz_plus").to_tensor("vertices"),+ [boxes3d_hexa],+ tags=("3d",),+ ),+ case(+ "boxes.Boxes3D.get_boxes_shape",+ G,+ lambda b: Boxes3D(b, mode="xyzxyz_plus").get_boxes_shape(),+ [boxes3d_hexa],+ tags=("3d",),+ ),+ case(+ "boxes.Boxes3D.to_mask",+ G,+ lambda b: Boxes3D(b, mode="xyzxyz_plus").to_mask(D3, H3, W3),+ [boxes3d_hexa],+ tags=("3d",),+ note="D,H,W baked",+ ),+ case(+ "boxes.Boxes3D.transform_boxes",+ G,+ lambda b, M: Boxes3D(b, mode="xyzxyz_plus").transform_boxes(M).data,+ [boxes3d_hexa, aff44_3d],+ tags=("3d",),+ ),+ case(+ "boxes.Boxes3D.transform_boxes_",+ G,+ lambda b, M: Boxes3D(b, mode="xyzxyz_plus").transform_boxes_(M).data,+ [boxes3d_hexa, aff44_3d],+ tags=("3d",),+ ),+ case(+ "boxes.VideoBoxes.from_tensor",+ G,+ lambda b: VideoBoxes.from_tensor(b).data,+ [boxes_quad[None].repeat(1, 2, 1, 1, 1)],+ note="(B,T,N,4,2) vertices",+ ),+ case(+ "boxes.VideoBoxes.to_tensor",+ G,+ lambda b: VideoBoxes.from_tensor(b).to_tensor("xyxy"),+ [boxes_quad[None].repeat(1, 2, 1, 1, 1)],+ ),+ case(+ "boxes.VideoBoxes.transform_boxes",+ G,+ lambda b, M: VideoBoxes.from_tensor(b).transform_boxes(M).data,+ [boxes_quad[None].repeat(1, 2, 1, 1, 1), homo33.repeat(2, 1, 1)],+ note="M must be (B*T,3,3): internal data is flattened to (B*T,N,4,2)",+ ),+]++# ----------------------------------------------------------------------------- keypoints+G = "geometry.keypoints"+CASES += [+ case("keypoints.Keypoints.from_tensor", G, lambda k: Keypoints.from_tensor(k).data, [kpts], tags=("points",)),+ case("keypoints.Keypoints.to_tensor", G, lambda k: Keypoints(k).to_tensor(), [kpts], tags=("points",)),+ case(+ "keypoints.Keypoints.transform_keypoints",+ G,+ lambda k, M: Keypoints(k).transform_keypoints(M).data,+ [kpts, homo33],+ tags=("points",),+ ),+ case(+ "keypoints.Keypoints.transform_keypoints_",+ G,+ lambda k, M: Keypoints(k).transform_keypoints_(M).data,+ [kpts, homo33],+ tags=("points",),+ ),+ case(+ "keypoints.Keypoints.pad",+ G,+ lambda k, p: Keypoints(k).pad(p).data,+ [kpts, torch.tensor([[2, 2, 3, 3]])],+ tags=("points",),+ ),+ case(+ "keypoints.Keypoints.unpad",+ G,+ lambda k, p: Keypoints(k).unpad(p).data,+ [kpts, torch.tensor([[2, 2, 3, 3]])],+ tags=("points",),+ ),+ case(+ "keypoints.Keypoints.index_put",+ G,+ lambda k, v: Keypoints(k).index_put((torch.tensor([0]), torch.tensor([1])), v).data,+ [kpts, kpts[0, :1]],+ tags=("points",),+ note="indices baked",+ ),+ case("keypoints.Keypoints.clone", G, lambda k: Keypoints(k).clone().data, [kpts], tags=("points",)),+ case("keypoints.Keypoints.type", G, lambda k: Keypoints(k).type(torch.float64).data, [kpts], tags=("points",)),+ case(+ "keypoints.Keypoints3D.from_tensor",+ G,+ lambda k: Keypoints3D.from_tensor(k).data,+ [kpts3d],+ tags=("points", "3d"),+ ),+ case("keypoints.Keypoints3D.to_tensor", G, lambda k: Keypoints3D(k).to_tensor(), [kpts3d], tags=("points", "3d")),+ case(+ "keypoints.Keypoints3D.transform_keypoints",+ G,+ None,+ [],+ skip="NotImplementedError stub (kornia/geometry/keypoints.py:377)",+ ),+ case(+ "keypoints.Keypoints3D.transform_keypoints_",+ G,+ None,+ [],+ skip="NotImplementedError stub (kornia/geometry/keypoints.py:377)",+ ),+ case("keypoints.Keypoints3D.pad", G, None, [], skip="NotImplementedError stub (kornia/geometry/keypoints.py:355)"),+ case(+ "keypoints.Keypoints3D.unpad", G, None, [], skip="NotImplementedError stub (kornia/geometry/keypoints.py:364)"+ ),+ case("keypoints.Keypoints3D.clone", G, lambda k: Keypoints3D(k).clone().data, [kpts3d], tags=("points", "3d")),+]++# ----------------------------------------------------------------------------- subpix+G = "geometry.subpix"+CASES += [+ case("subpix.conv_soft_argmax2d", G, conv_soft_argmax2d, [heat]),+ case(+ "subpix.conv_soft_argmax2d[output_value,pixel,stride2]",+ G,+ conv_soft_argmax2d,+ [heat],+ {"output_value": True, "normalized_coordinates": False, "stride": (2, 2)},+ ),+ case(+ "subpix.conv_soft_argmax2d[tensor_temperature]",+ G,+ lambda x, t: conv_soft_argmax2d(x, temperature=t),+ [heat, torch.tensor(0.5)],+ note="temperature as live 0-d tensor; `if temperature <= 0` is a data-dependent guard",+ ),+ case("subpix.conv_soft_argmax3d", G, conv_soft_argmax3d, [heat3d], tags=("3d",)),+ case(+ "subpix.conv_soft_argmax3d[normalized,bonus]",+ G,+ conv_soft_argmax3d,+ [heat3d],+ {"normalized_coordinates": True, "strict_maxima_bonus": 10.0},+ tags=("3d",),+ ),+ case("subpix.conv_quad_interp3d", G, conv_quad_interp3d, [heat3d], tags=("3d",)),+ case(+ "subpix.conv_quad_interp3d[no_scale_steps]",+ G,+ conv_quad_interp3d,+ [heat3d],+ {"allow_scale_steps": False},+ tags=("3d",),+ ),+ case(+ "subpix.conv_quad_interp3d[precomputed_mask]",+ G,+ lambda x: conv_quad_interp3d(x, precomputed_nms_mask=nms3d(x, (3, 3, 3), mask_only=True)),+ [heat3d],+ tags=("3d",),+ ),+ case(+ "subpix.iterative_quad_interp3d",+ G,+ iterative_quad_interp3d,+ [heat3d],+ tags=("3d",),+ note="data-dependent candidate set",+ ),+ case(+ "subpix.iterative_quad_interp3d[max_candidates]",+ G,+ iterative_quad_interp3d,+ [heat3d],+ {"max_candidates": 32},+ tags=("3d",),+ ),+ case("subpix.spatial_softmax2d", G, spatial_softmax2d, [heat]),+ case("subpix.spatial_softmax2d[temperature]", G, spatial_softmax2d, [heat, torch.tensor(0.5)]),+ case("subpix.spatial_expectation2d", G, spatial_expectation2d, [spatial_softmax2d(heat)]),+ case(+ "subpix.spatial_expectation2d[pixel]",+ G,+ spatial_expectation2d,+ [spatial_softmax2d(heat)],+ {"normalized_coordinates": False},+ ),+ case("subpix.spatial_soft_argmax2d", G, spatial_soft_argmax2d, [heat]),+ case("subpix.spatial_soft_argmax2d[temperature]", G, spatial_soft_argmax2d, [heat, torch.tensor(0.5)]),+ case(+ "subpix.render_gaussian2d",+ G,+ render_gaussian2d,+ [torch.tensor([[0.1, -0.2], [0.3, 0.4]]), torch.tensor([[0.2, 0.3], [0.1, 0.1]])],+ {"size": (16, 24)},+ note="size baked; mean/std (N,2) normalized",+ ),+ case(+ "subpix.render_gaussian2d[pixel]",+ G,+ render_gaussian2d,+ [torch.tensor([[5.0, 8.0], [12.0, 20.0]]), torch.tensor([[2.0, 3.0], [1.0, 1.0]])],+ {"size": (16, 24), "normalized_coordinates": False},+ ),+ case("subpix.nms2d", G, nms2d, [heat], {"kernel_size": (3, 3)}),+ case("subpix.nms2d[mask_only,5x5]", G, nms2d, [heat], {"kernel_size": (5, 5), "mask_only": True}),+ case("subpix.nms3d", G, nms3d, [heat3d], {"kernel_size": (3, 3, 3)}, tags=("3d",)),+ case("subpix.nms3d[mask_only]", G, nms3d, [heat3d], {"kernel_size": (3, 3, 3), "mask_only": True}, tags=("3d",)),+ case("subpix.nms3d_minmax", G, nms3d_minmax, [heat3d], tags=("3d",)),+ case("subpix.SpatialSoftArgmax2d", G, SpatialSoftArgmax2d(), [heat]),+ case("subpix.ConvSoftArgmax2d", G, ConvSoftArgmax2d(), [heat]),+ case("subpix.ConvSoftArgmax3d", G, ConvSoftArgmax3d(), [heat3d], tags=("3d",)),+ case("subpix.ConvQuadInterp3d", G, ConvQuadInterp3d(), [heat3d], tags=("3d",)),+ case("subpix.IterativeQuadInterp3d", G, IterativeQuadInterp3d(), [heat3d], tags=("3d",)),+ case("subpix.AdaptiveQuadInterp3d", G, AdaptiveQuadInterp3d(), [heat3d], tags=("3d",), note="mode=auto"),+ case("subpix.AdaptiveQuadInterp3d[conv]", G, AdaptiveQuadInterp3d(mode="conv"), [heat3d], tags=("3d",)),+ case("subpix.AdaptiveQuadInterp3d[patch]", G, AdaptiveQuadInterp3d(mode="patch"), [heat3d], tags=("3d",)),+ case("subpix.NonMaximaSuppression2d", G, NonMaximaSuppression2d((3, 3)), [heat]),+ case("subpix.NonMaximaSuppression3d", G, NonMaximaSuppression3d((3, 3, 3)), [heat3d], tags=("3d",)),+]++# ----------------------------------------------------------------------------- line / plane / ray / vector / pose+G = "geometry.line"+CASES += [+ case(+ "line.fit_line", G, lambda p: (lambda ln: (ln.origin, ln.direction))(fit_line(p)), [line_pts], tags=("points",)+ ),+ case(+ "line.fit_line[weights]",+ G,+ lambda p, w: (lambda ln: (ln.origin, ln.direction))(fit_line(p, w)),+ [line_pts, torch.rand(1, 10)],+ tags=("points",),+ ),+ case(+ "line.ParametrizedLine.through",+ G,+ lambda a, b: (lambda ln: (ln.origin, ln.direction))(ParametrizedLine.through(a, b)),+ [p3, q3],+ ),+ case(+ "line.ParametrizedLine.point_at",+ G,+ lambda a, b, t: ParametrizedLine.through(a, b).point_at(t),+ [p3, q3, torch.tensor(0.3)],+ ),+ case(+ "line.ParametrizedLine.point_at[float]", G, lambda a, b: ParametrizedLine.through(a, b).point_at(0.3), [p3, q3]+ ),+ case(+ "line.ParametrizedLine.projection",+ G,+ lambda a, b, p: ParametrizedLine.through(a, b).projection(p),+ [p3, q3, torch.tensor([0.0, 1.0, 0.0])],+ ),+ case(+ "line.ParametrizedLine.distance",+ G,+ lambda a, b, p: ParametrizedLine.through(a, b).distance(p),+ [p3, q3, torch.tensor([0.0, 1.0, 0.0])],+ ),+ case(+ "line.ParametrizedLine.squared_distance",+ G,+ lambda a, b, p: ParametrizedLine.through(a, b).squared_distance(p),+ [p3, q3, torch.tensor([0.0, 1.0, 0.0])],+ ),+ case(+ "line.ParametrizedLine.intersect",+ G,+ lambda a, b, n, e: ParametrizedLine.through(a, b).intersect(Hyperplane.from_vector(Vector3(n), Vector3(e))),+ [p3, q3, torch.tensor([0.0, 0.0, 1.0]), torch.tensor([0.0, 0.0, 5.0])],+ note="returns (lambda, point)",+ ),+ case(+ "line.ParametrizedLine.dim",+ G,+ lambda a, b: ParametrizedLine.through(a, b).dim(),+ [p3, q3],+ note="returns Python int",+ ),+ case(+ "ray.Ray",+ G,+ lambda a, b: (lambda r: (r.origin, r.direction))(Ray.through(a, b)),+ [p3, q3],+ note="Ray is an alias of ParametrizedLine",+ ),+]+G = "geometry.plane"+CASES += [+ case(+ "plane.fit_plane",+ G,+ lambda p: (lambda pl: (pl.normal.data, pl.offset.data))(fit_plane(Vector3(p))),+ [plane_pts],+ tags=("points",),+ note="SVD",+ ),+ case(+ "plane.Hyperplane.through",+ G,+ lambda a, b, c: (lambda pl: (pl.normal.data, pl.offset.data))(Hyperplane.through(a, b, c)),+ [p3, q3, torch.tensor([0.0, 1.0, 5.0])],+ ),+ case(+ "plane.Hyperplane.through[2d]",+ G,+ lambda a, b: (lambda pl: (pl.normal.data, pl.offset.data))(Hyperplane.through(a, b)),+ [torch.tensor([[1.0, 2.0]]), torch.tensor([[3.0, 5.0]])],+ note="KORNIA BUG: 2-D branch wraps a 2-vector into Vector3 -> always fails validation (plane.py:185)",+ ),+ case(+ "plane.Hyperplane.from_vector",+ G,+ lambda n, e: (lambda pl: (pl.normal.data, pl.offset.data))(Hyperplane.from_vector(Vector3(n), Vector3(e))),+ [torch.tensor([0.0, 0.0, 1.0]), torch.tensor([0.0, 0.0, 5.0])],+ ),+ case(+ "plane.Hyperplane.signed_distance",+ G,+ lambda n, e, p: Hyperplane.from_vector(Vector3(n), Vector3(e)).signed_distance(Vector3(p)).data,+ [torch.tensor([0.0, 0.0, 1.0]), torch.tensor([0.0, 0.0, 5.0]), v3],+ ),+ case(+ "plane.Hyperplane.abs_distance",+ G,+ lambda n, e, p: Hyperplane.from_vector(Vector3(n), Vector3(e)).abs_distance(Vector3(p)).data,+ [torch.tensor([0.0, 0.0, 1.0]), torch.tensor([0.0, 0.0, 5.0]), v3],+ ),+ case(+ "plane.Hyperplane.projection",+ G,+ lambda n, e, p: Hyperplane.from_vector(Vector3(n), Vector3(e)).projection(Vector3(p)).data,+ [torch.tensor([0.0, 0.0, 1.0]), torch.tensor([0.0, 0.0, 5.0]), v3],+ ),+]+G = "geometry.vector"+CASES += [+ case("vector.Vector3.normalized", G, lambda v: Vector3(v).normalized().data, [v3]),+ case("vector.Vector3.dot", G, lambda a, b: Vector3(a).dot(Vector3(b)).data, [v3, torch.randn(4, 3)]),+ case("vector.Vector3.squared_norm", G, lambda v: Vector3(v).squared_norm().data, [v3]),+ case(+ "vector.Vector3.from_coords",+ G,+ lambda x, y, z: Vector3.from_coords(x, y, z).data,+ [torch.randn(4), torch.randn(4), torch.randn(4)],+ ),+ case("vector.Vector3.xyz", G, lambda v: (Vector3(v).x, Vector3(v).y, Vector3(v).z), [v3]),+ case(+ "vector.Vector3.arith",+ G,+ lambda a, b: (Vector3(a) + Vector3(b)).data * 2.0 - (Vector3(a) - Vector3(b)).data,+ [v3, torch.randn(4, 3)],+ note="TensorWrapper __add__/__sub__/__mul__",+ ),+ case("vector.Vector2.normalized", G, lambda v: Vector2(v).normalized().data, [torch.randn(4, 2)]),+ case("vector.Vector2.dot", G, lambda a, b: Vector2(a).dot(Vector2(b)).data, [torch.randn(4, 2), torch.randn(4, 2)]),+ case("vector.Vector2.squared_norm", G, lambda v: Vector2(v).squared_norm().data, [torch.randn(4, 2)]),+ case(+ "vector.Vector2.from_coords", G, lambda x, y: Vector2.from_coords(x, y).data, [torch.randn(4), torch.randn(4)]+ ),+ case("vector.Scalar", G, lambda s: (Scalar(s) * 2.0).data, [torch.randn(4)]),+ case("vector.Vector3.random", G, None, [], skip="random constructor; no tensor input, non-deterministic"),+]+G = "geometry.pose"+CASES += [+ case(+ "pose.NamedPose.from_matrix.transform_points",+ G,+ lambda M, p: NamedPose.from_matrix(M, "a", "b").transform_points(p),+ [pose44, pts3[0]],+ tags=("points", "3d"),+ note="points (N,3) with a batch-1 pose; (B,N,3) is rejected by So3.__mul__",+ ),+ case(+ "pose.NamedPose.from_matrix.pose",+ G,+ lambda M: NamedPose.from_matrix(M, "a", "b").pose.matrix(),+ [pose44],+ tags=("3d",),+ ),+ case(+ "pose.NamedPose.from_rt",+ G,+ lambda R, t: NamedPose.from_rt(R, t, "a", "b").pose.matrix(),+ [so3.matrix(), torch.tensor([[0.5, -1.0, 2.0]])],+ tags=("3d",),+ note="rotation as (B,3,3) matrix",+ ),+ case(+ "pose.NamedPose.inverse",+ G,+ lambda M: NamedPose.from_matrix(M, "a", "b").inverse().pose.matrix(),+ [pose44],+ tags=("3d",),+ ),+ case(+ "pose.NamedPose.mul",+ G,+ lambda M: (NamedPose.from_matrix(M, "b", "c") * NamedPose.from_matrix(M, "a", "b")).pose.matrix(),+ [pose44],+ tags=("3d",),+ ),+ case(+ "pose.NamedPose.rotation_translation",+ G,+ lambda M: (lambda np_: (np_.rotation.matrix(), np_.translation))(NamedPose.from_matrix(M, "a", "b")),+ [pose44],+ tags=("3d",),+ ),+ case(+ "pose.NamedPose.from_matrix[se2]",+ G,+ lambda M, p: NamedPose.from_matrix(M, "a", "b").transform_points(p),+ [+ torch.tensor(+ [[[math.cos(0.3), -math.sin(0.3), 1.0], [math.sin(0.3), math.cos(0.3), -2.0], [0.0, 0.0, 1.0]]]+ ),+ torch.randn(5, 2),+ ],+ tags=("points",),+ note="3x3 -> Se2 path; points (N,2)",+ ),+ case("pose.check_matrix_shape", G, None, [], skip="validation helper, returns None"),+ case(+ "pose.Quaternion/Se2/Se3/So2/So3",+ G,+ None,+ [],+ skip="re-exports of kornia.geometry.liegroup / quaternion β covered by the liegroup area",+ ),+]++if __name__ == "__main__":+ run_cases(CASES, sys.argv[1], only=sys.argv[2:] or None)diff --git a/docs/export_support/cases_geomB.py b/docs/export_support/cases_geomB.pynew file mode 100644index 000000000..bb59dce37--- /dev/null+++ b/docs/export_support/cases_geomB.py@@ -0,0 +1,854 @@+# LICENSE HEADER MANAGED BY add-license-header+#+# Copyright 2018 Kornia Team+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+#++"""ONNX export survey β area geomB: conversions, linalg, homography, epipolar, camera, calibration, depth,+liegroup, quaternion, ransac, solvers, pointcloud."""++import sys++import torch+from harness import case, run_cases++import kornia as K+from kornia.geometry import conversions as C+from kornia.geometry import epipolar as E+from kornia.geometry import linalg as L+from kornia.geometry.camera import PinholeCamera, StereoCamera+from kornia.geometry.liegroup import Se2, Se3, So2, So3+from kornia.geometry.quaternion import Quaternion++torch.manual_seed(0)++# ----------------------------------------------------------------------------- synthetic geometry+B, N = 1, 12+IMG = torch.rand(1, 3, 32, 40)+Kmat = E.intrinsics_like(50.0, IMG) # (1,3,3): fx=fy=50, cx=20, cy=16+Kmat2 = E.intrinsics_like(60.0, IMG)+++def _rot(axis_angle):+ return C.axis_angle_to_rotation_matrix(torch.tensor([axis_angle])) # (1,3,3)+++R1 = _rot([0.0, 0.0, 0.0])+t1 = torch.zeros(1, 3, 1)+R2 = _rot([0.05, -0.15, 0.08])+t2 = torch.tensor([[[0.6], [0.1], [0.2]]])+P1 = E.projection_from_KRt(Kmat, R1, t1) # (1,3,4)+P2 = E.projection_from_KRt(Kmat2, R2, t2)+X3d = torch.rand(1, N, 3) * torch.tensor([2.0, 1.5, 1.0]) + torch.tensor([-1.0, -0.75, 3.0]) # in front of cam+pts1 = L.transform_points(P1, X3d) # (1,N,2)+pts2 = L.transform_points(P2, X3d)+E_gt = E.essential_from_Rt(R1, t1, R2, t2)+F_gt = E.fundamental_from_essential(E_gt, Kmat, Kmat2)+F_gt = F_gt / F_gt[..., 2:3, 2:3]+T01 = C.Rt_to_matrix4x4(R2, t2) # (1,4,4)+T02 = C.Rt_to_matrix4x4(_rot([0.1, 0.02, -0.03]), torch.tensor([[[0.1], [-0.2], [0.3]]]))++# planar homography scene+H_gt = torch.tensor([[[1.05, 0.02, 2.0], [-0.03, 0.98, -1.0], [0.0005, -0.0002, 1.0]]])+hp1 = torch.rand(1, N, 2) * torch.tensor([40.0, 32.0])+hp2 = L.transform_points(H_gt, hp1)+hp1_4 = hp1[:, :4]+hp2_4 = hp2[:, :4]+ls1 = torch.rand(1, N, 2, 2) * torch.tensor([40.0, 32.0])+ls2 = L.transform_points(H_gt, ls1.reshape(1, -1, 2)).reshape(1, N, 2, 2)+w_ones = torch.ones(1, N)++# rotations / quaternions+aa = torch.tensor([[0.1, -0.2, 0.3], [1.0, 0.5, -0.4]]) # (2,3) axis-angle+Rm = C.axis_angle_to_rotation_matrix(aa) # (2,3,3)+q = C.normalize_quaternion(torch.tensor([[0.9, 0.1, -0.2, 0.3], [0.2, 0.7, 0.1, -0.5]])) # (2,4) wxyz+qb = C.normalize_quaternion(torch.tensor([[0.5, 0.5, 0.5, 0.5], [0.8, -0.1, 0.4, 0.2]]))+euler = (torch.tensor([0.1, -0.4]), torch.tensor([0.2, 0.3]), torch.tensor([-0.3, 1.0]))+++# pinhole cameras+def _pinhole(k_in, r_in, t_in):+ intr = torch.eye(4)[None].clone()+ intr[:, :3, :3] = k_in+ extr = C.Rt_to_matrix4x4(r_in, t_in)+ return PinholeCamera(intr, extr, torch.tensor([32]), torch.tensor([40]))+++cam1 = _pinhole(Kmat, R1, t1)+cam2 = _pinhole(Kmat2, R2, t2)+depth_img = torch.rand(1, 1, 32, 40) * 2.0 + 2.0++# stereo+left34 = torch.zeros(1, 3, 4)+left34[:, :3, :3] = Kmat+right34 = left34.clone()+right34[:, 0, 3] = -50.0 * 0.1 # fx * baseline (negative)+disparity = torch.rand(1, 32, 40, 1) * 5.0 + 1.0++# distortion (OpenCV model)+dist5 = torch.tensor([[0.1, -0.02, 0.001, 0.002, 0.005]])+dist14 = torch.tensor([[0.1, -0.02, 0.001, 0.002, 0.005, 0.0, 0.0, 0.0, 0.001, 0.0, 0.0, 0.0, 0.01, 0.02]])+img_pts = torch.rand(1, N, 2) * torch.tensor([40.0, 32.0])+kb_params = torch.tensor([50.0, 50.0, 20.0, 16.0, 0.1, 0.01, 0.001, 0.0001])+aff_params = torch.tensor([50.0, 50.0, 20.0, 16.0])+z1_pts = torch.rand(N, 2) * 0.6 - 0.3+cam_pts3 = torch.rand(N, 3) + torch.tensor([-0.5, -0.5, 2.0])++# liegroup parameter vectors+so3_v = torch.tensor([[0.1, -0.2, 0.3], [0.5, 0.4, -0.1]])+se3_v = torch.cat([torch.tensor([[0.3, -0.1, 0.2], [1.0, 0.5, -0.5]]), so3_v], dim=-1) # (2,6) [t, omega]+so2_th = torch.tensor([0.3, -1.2])+se2_v = torch.tensor([[0.5, -0.2, 0.3], [1.0, 0.7, -1.2]]) # (2,3) [x, y, theta]+So3M = So3.exp(so3_v).matrix()+Se3M = Se3.exp(se3_v).matrix()+So2M = So2.exp(so2_th).matrix()+Se2M = Se2.exp(se2_v).matrix()+++def _cc(name, fn, inputs, kwargs=None, **kw):+ return case("geometry.conversions." + name, "geometry.conversions", fn, inputs, kwargs, **kw)+++def _cl(name, fn, inputs, kwargs=None, **kw):+ return case("geometry.linalg." + name, "geometry.linalg", fn, inputs, kwargs, **kw)+++def _ch(name, fn, inputs, kwargs=None, **kw):+ return case("geometry.homography." + name, "geometry.homography", fn, inputs, kwargs, **kw)+++def _ce(name, fn, inputs, kwargs=None, **kw):+ return case("geometry.epipolar." + name, "geometry.epipolar", fn, inputs, kwargs, **kw)+++def _cam(name, fn, inputs, kwargs=None, **kw):+ return case("geometry.camera." + name, "geometry.camera", fn, inputs, kwargs, **kw)+++def _cal(name, fn, inputs, kwargs=None, **kw):+ return case("geometry.calibration." + name, "geometry.calibration", fn, inputs, kwargs, **kw)+++def _cd(name, fn, inputs, kwargs=None, **kw):+ return case("geometry.depth." + name, "geometry.depth", fn, inputs, kwargs, **kw)+++def _clg(name, fn, inputs, kwargs=None, **kw):+ return case("geometry.liegroup." + name, "geometry.liegroup", fn, inputs, kwargs, **kw)+++def _cq(name, fn, inputs, kwargs=None, **kw):+ return case("geometry.quaternion." + name, "geometry.quaternion", fn, inputs, kwargs, **kw)+++def _cs(name, fn, inputs, kwargs=None, **kw):+ return case("geometry.solvers." + name, "geometry.solvers", fn, inputs, kwargs, **kw)+++CASES = [+ # ------------------------------------------------------------------ conversions+ _cc("rad2deg", C.rad2deg, [torch.rand(2, 3) * 6.0]),+ _cc("deg2rad", C.deg2rad, [torch.rand(2, 3) * 360.0]),+ _cc("pol2cart", C.pol2cart, [torch.rand(2, 5) + 0.5, torch.rand(2, 5) * 6.0]),+ _cc("cart2pol", C.cart2pol, [torch.randn(2, 5), torch.randn(2, 5)]),+ _cc("angle_to_rotation_matrix", C.angle_to_rotation_matrix, [torch.rand(2, 3) * 360.0], note="angle in degrees"),+ _cc("convert_points_from_homogeneous", C.convert_points_from_homogeneous, [torch.rand(1, N, 3) + 0.5]),+ _cc("convert_points_to_homogeneous", C.convert_points_to_homogeneous, [torch.rand(1, N, 2)]),+ _cc("convert_affinematrix_to_homography", C.convert_affinematrix_to_homography, [torch.rand(2, 2, 3)]),+ _cc(+ "convert_affinematrix_to_homography3d",+ C.convert_affinematrix_to_homography3d,+ [torch.rand(2, 3, 4)],+ tags=("3d",),+ ),+ _cc(+ "normalize_pixel_coordinates",+ C.normalize_pixel_coordinates,+ [img_pts],+ {"height": 32, "width": 40},+ note="H,W baked",+ ),+ _cc(+ "denormalize_pixel_coordinates",+ C.denormalize_pixel_coordinates,+ [torch.rand(1, N, 2) * 2 - 1],+ {"height": 32, "width": 40},+ note="H,W baked",+ ),+ _cc(+ "normalize_pixel_coordinates3d",+ C.normalize_pixel_coordinates3d,+ [torch.rand(1, N, 3) * torch.tensor([40.0, 32.0, 8.0])],+ {"depth": 8, "height": 32, "width": 40},+ note="D,H,W baked",+ tags=("3d",),+ ),+ _cc(+ "denormalize_pixel_coordinates3d",+ C.denormalize_pixel_coordinates3d,+ [torch.rand(1, N, 3) * 2 - 1],+ {"depth": 8, "height": 32, "width": 40},+ note="D,H,W baked",+ tags=("3d",),+ ),+ _cc("normalize_points_with_intrinsics", C.normalize_points_with_intrinsics, [img_pts, Kmat]),+ _cc("denormalize_points_with_intrinsics", C.denormalize_points_with_intrinsics, [torch.rand(1, N, 2) - 0.5, Kmat]),+ _cc(+ "normalize_homography",+ C.normalize_homography,+ [H_gt],+ {"dsize_src": (32, 40), "dsize_dst": (32, 40)},+ note="dsize baked",+ ),+ _cc(+ "denormalize_homography",+ C.denormalize_homography,+ [H_gt],+ {"dsize_src": (32, 40), "dsize_dst": (32, 40)},+ note="dsize baked",+ ),+ _cc(+ "normalize_homography3d",+ C.normalize_homography3d,+ [torch.eye(4)[None] + torch.rand(1, 4, 4) * 0.01],+ {"dsize_src": (8, 32, 40), "dsize_dst": (8, 32, 40)},+ note="dsize baked",+ tags=("3d",),+ ),+ _cc(+ "normal_transform_pixel",+ lambda d: C.normal_transform_pixel(32, 40, device=d.device, dtype=d.dtype),+ [torch.zeros(1)],+ note="H,W baked; graph fully constant",+ ),+ _cc(+ "normal_transform_pixel3d",+ lambda d: C.normal_transform_pixel3d(8, 32, 40, device=d.device, dtype=d.dtype),+ [torch.zeros(1)],+ note="D,H,W baked; graph fully constant",+ tags=("3d",),+ ),+ _cc("quaternion_to_axis_angle", C.quaternion_to_axis_angle, [q]),+ _cc("quaternion_to_angle_axis", None, [], skip="deprecated alias of quaternion_to_axis_angle"),+ _cc("quaternion_to_rotation_matrix", C.quaternion_to_rotation_matrix, [q]),+ _cc("quaternion_log_to_exp", C.quaternion_log_to_exp, [aa]),+ _cc("quaternion_exp_to_log", C.quaternion_exp_to_log, [q]),+ _cc("normalize_quaternion", C.normalize_quaternion, [torch.rand(2, 4) + 0.1]),+ _cc("vector_to_skew_symmetric_matrix", C.vector_to_skew_symmetric_matrix, [torch.rand(2, 3)]),+ _cc("rotation_matrix_to_axis_angle", C.rotation_matrix_to_axis_angle, [Rm]),+ _cc("rotation_matrix_to_angle_axis", None, [], skip="deprecated alias of rotation_matrix_to_axis_angle"),+ _cc("rotation_matrix_to_quaternion", C.rotation_matrix_to_quaternion, [Rm]),+ _cc("axis_angle_to_quaternion", C.axis_angle_to_quaternion, [aa]),+ _cc("angle_axis_to_quaternion", None, [], skip="deprecated alias of axis_angle_to_quaternion"),+ _cc("axis_angle_to_rotation_matrix", C.axis_angle_to_rotation_matrix, [aa]),+ _cc("angle_axis_to_rotation_matrix", None, [], skip="deprecated alias of axis_angle_to_rotation_matrix"),+ _cc("quaternion_from_euler", C.quaternion_from_euler, list(euler)),+ _cc(+ "euler_from_quaternion", lambda qq: C.euler_from_quaternion(qq[..., 0], qq[..., 1], qq[..., 2], qq[..., 3]), [q]+ ),+ _cc("Rt_to_matrix4x4", C.Rt_to_matrix4x4, [R2, t2]),+ _cc("matrix4x4_to_Rt", C.matrix4x4_to_Rt, [T01]),+ _cc("worldtocam_to_camtoworld_Rt", C.worldtocam_to_camtoworld_Rt, [R2, t2]),+ _cc("camtoworld_to_worldtocam_Rt", C.camtoworld_to_worldtocam_Rt, [R2, t2]),+ _cc("camtoworld_graphics_to_vision_4x4", C.camtoworld_graphics_to_vision_4x4, [T01]),+ _cc("camtoworld_vision_to_graphics_4x4", C.camtoworld_vision_to_graphics_4x4, [T01]),+ _cc("camtoworld_graphics_to_vision_Rt", C.camtoworld_graphics_to_vision_Rt, [R2, t2]),+ _cc("camtoworld_vision_to_graphics_Rt", C.camtoworld_vision_to_graphics_Rt, [R2, t2]),+ _cc("ARKitQTVecs_to_ColmapQTVecs", C.ARKitQTVecs_to_ColmapQTVecs, [q[:1], torch.tensor([[[0.1], [0.2], [0.3]]])]),+ # ------------------------------------------------------------------ linalg+ _cl("relative_transformation", L.relative_transformation, [T01, T02]),+ _cl("compose_transformations", L.compose_transformations, [T01, T02]),+ _cl("inverse_transformation", L.inverse_transformation, [T01]),+ _cl("transform_points", L.transform_points, [T01, X3d]),+ _cl("transform_points[2d-homography]", L.transform_points, [H_gt, hp1]),+ _cl("point_line_distance", L.point_line_distance, [hp1, torch.rand(1, N, 3) + 0.1]),+ _cl("squared_norm", L.squared_norm, [X3d]),+ _cl("batched_dot_product", L.batched_dot_product, [X3d, X3d + 0.1]),+ _cl("batched_squared_norm", L.batched_squared_norm, [X3d]),+ _cl("euclidean_distance", L.euclidean_distance, [X3d, X3d + 0.1]),+ # ------------------------------------------------------------------ homography+ _ch(+ "find_homography_dlt",+ K.geometry.homography.find_homography_dlt,+ [hp1, hp2],+ note="solver=lu (default)",+ atol=1e-3,+ ),+ _ch(+ "find_homography_dlt[svd]", K.geometry.homography.find_homography_dlt, [hp1, hp2], {"solver": "svd"}, atol=1e-3+ ),+ _ch("find_homography_dlt[weights]", K.geometry.homography.find_homography_dlt, [hp1, hp2, w_ones], atol=1e-3),+ _ch(+ "find_homography_dlt_iterated",+ K.geometry.homography.find_homography_dlt_iterated,+ [hp1, hp2, w_ones],+ {"n_iter": 3},+ note="n_iter baked",+ atol=1e-3,+ ),+ _ch("find_homography_lines_dlt", K.geometry.homography.find_homography_lines_dlt, [ls1, ls2], atol=1e-3),+ _ch(+ "find_homography_lines_dlt_iterated",+ K.geometry.homography.find_homography_lines_dlt_iterated,+ [ls1, ls2, w_ones],+ {"n_iter": 3},+ note="n_iter baked",+ atol=1e-3,+ ),+ _ch(+ "line_segment_transfer_error_one_way",+ K.geometry.homography.line_segment_transfer_error_one_way,+ [ls1, ls2, H_gt],+ ),+ _ch("oneway_transfer_error", K.geometry.homography.oneway_transfer_error, [hp1, hp2, H_gt]),+ _ch("symmetric_transfer_error", K.geometry.homography.symmetric_transfer_error, [hp1, hp2, H_gt]),+ _ch(+ "sample_is_valid_for_homography",+ K.geometry.homography.sample_is_valid_for_homography,+ [hp1_4, hp2_4],+ note="returns bool (B,)",+ ),+ _ch("normalize_points", K.geometry.homography.normalize_points, [hp1]),+ _ch("safe_inverse_with_mask", K.geometry.homography.safe_inverse_with_mask, [H_gt]),+ _ch("safe_solve_with_mask", K.geometry.homography.safe_solve_with_mask, [torch.rand(1, 3, 1), H_gt]),+ # ------------------------------------------------------------------ epipolar+ _ce("find_fundamental", E.find_fundamental, [pts1, pts2], note="8POINT", atol=1e-3),+ _ce("find_fundamental[weights]", E.find_fundamental, [pts1, pts2, w_ones], atol=1e-3),+ _ce(+ "find_fundamental[7POINT]",+ E.find_fundamental,+ [pts1[:, :7], pts2[:, :7]],+ {"method": "7POINT"},+ note="returns up to 3 F (B,3*3,3)",+ atol=1e-3,+ ),+ _ce(+ "find_essential", E.find_essential, [pts1[:, :5], pts2[:, :5]], note="5pt Nister, returns (B,10,3,3)", atol=1e-3+ ),+ _ce("find_essential[weights]", E.find_essential, [pts1[:, :5], pts2[:, :5], w_ones[:, :5]], atol=1e-3),+ _ce("project_to_essential", E.project_to_essential, [E_gt + torch.rand(1, 3, 3) * 0.01]),+ _ce("essential_from_fundamental", E.essential_from_fundamental, [F_gt, Kmat, Kmat2]),+ _ce("essential_from_Rt", E.essential_from_Rt, [R1, t1, R2, t2]),+ _ce(+ "decompose_essential_matrix", E.decompose_essential_matrix, [E_gt], note="SVD-based; sign ambiguity", atol=1e-3+ ),+ _ce("decompose_essential_matrix_no_svd", E.decompose_essential_matrix_no_svd, [E_gt], atol=1e-3),+ _ce("motion_from_essential", E.motion_from_essential, [E_gt], atol=1e-3),+ _ce(+ "motion_from_essential_choose_solution",+ E.motion_from_essential_choose_solution,+ [E_gt, Kmat, Kmat2, pts1, pts2],+ atol=1e-3,+ ),+ _ce(+ "motion_from_essential_choose_solution[mask]",+ E.motion_from_essential_choose_solution,+ [E_gt, Kmat, Kmat2, pts1, pts2, torch.ones(1, N, dtype=torch.bool)],+ atol=1e-3,+ ),+ _ce("relative_camera_motion", E.relative_camera_motion, [R1, t1, R2, t2]),+ _ce("fundamental_from_essential", E.fundamental_from_essential, [E_gt, Kmat, Kmat2]),+ _ce("fundamental_from_projections", E.fundamental_from_projections, [P1, P2]),+ _ce("compute_correspond_epilines", E.compute_correspond_epilines, [pts1, F_gt]),+ _ce("normalize_points", E.normalize_points, [pts1]),+ _ce("normalize_transformation", E.normalize_transformation, [F_gt * 3.0]),+ _ce("get_perpendicular", E.get_perpendicular, [torch.rand(1, N, 3) + 0.1, pts1]),+ _ce("get_closest_point_on_epipolar_line", E.get_closest_point_on_epipolar_line, [pts1, pts2, F_gt]),+ _ce("sampson_epipolar_distance", E.sampson_epipolar_distance, [pts1, pts2, F_gt]),+ _ce(+ "sampson_epipolar_distance[no-matmul]",+ E.sampson_epipolar_distance,+ [pts1, pts2, F_gt],+ {"use_matmul_at_less_than_points": 0},+ note="einsum path",+ ),+ _ce("symmetrical_epipolar_distance", E.symmetrical_epipolar_distance, [pts1, pts2, F_gt]),+ _ce("left_to_right_epipolar_distance", E.left_to_right_epipolar_distance, [pts1, pts2, F_gt]),+ _ce("right_to_left_epipolar_distance", E.right_to_left_epipolar_distance, [pts1, pts2, F_gt]),+ _ce("projection_from_KRt", E.projection_from_KRt, [Kmat, R2, t2]),+ _ce("projections_from_fundamental", E.projections_from_fundamental, [F_gt], atol=1e-3),+ _ce("KRt_from_projection", E.KRt_from_projection, [P2], atol=1e-3),+ _ce("depth_from_point", E.depth_from_point, [R2, t2, X3d]),+ _ce("intrinsics_like", lambda im: E.intrinsics_like(50.0, im), [IMG], note="focal baked; only shape of image used"),+ _ce("scale_intrinsics", E.scale_intrinsics, [Kmat, torch.tensor([0.5])]),+ _ce("scale_intrinsics[float]", E.scale_intrinsics, [Kmat], {"scale_factor": 0.5}, note="scale baked"),+ _ce(+ "random_intrinsics",+ lambda d: E.random_intrinsics(d, d + 100.0),+ [torch.tensor(1.0)],+ check=False,+ note="uses torch.rand inside",+ ),+ _ce("cross_product_matrix", E.cross_product_matrix, [torch.rand(2, 3)]),+ _ce("triangulate_points", E.triangulate_points, [P1, P2, pts1, pts2], note="solver=eigh (default)", atol=1e-3),+ _ce("triangulate_points[svd]", E.triangulate_points, [P1, P2, pts1, pts2], {"solver": "svd"}, atol=1e-3),+ _ce("generate_scene", None, [], skip="random scene generator with int-only args (returns dict of random tensors)"),+ # ------------------------------------------------------------------ camera+ _cam("project_points", K.geometry.camera.project_points, [X3d, Kmat]),+ _cam("unproject_points", K.geometry.camera.unproject_points, [pts1, X3d[..., 2:3], Kmat]),+ _cam(+ "unproject_points[normalize]",+ K.geometry.camera.unproject_points,+ [pts1, X3d[..., 2:3], Kmat],+ {"normalize": True},+ ),+ _cam(+ "cam2pixel",+ K.geometry.camera.cam2pixel,+ [torch.rand(1, 32, 40, 3) + torch.tensor([0.0, 0.0, 2.0]), cam1.intrinsics],+ ),+ _cam(+ "pixel2cam",+ K.geometry.camera.pixel2cam,+ [+ depth_img,+ cam1.intrinsics_inverse(),+ torch.cat([K.geometry.camera.stereo.create_meshgrid(32, 40, False), torch.ones(1, 32, 40, 1)], -1),+ ],+ ),+ _cam(+ "PinholeCamera.project",+ lambda intr, extr, p: PinholeCamera(intr, extr, torch.tensor([32]), torch.tensor([40])).project(p),+ [cam2.intrinsics, cam2.extrinsics, X3d],+ ),+ _cam(+ "PinholeCamera.unproject",+ lambda intr, extr, p, d: PinholeCamera(intr, extr, torch.tensor([32]), torch.tensor([40])).unproject(p, d),+ [cam2.intrinsics, cam2.extrinsics, pts2, X3d[..., 2:3]],+ atol=1e-3,+ ),+ _cam(+ "PinholeCamera.intrinsics_inverse",+ lambda intr, extr: PinholeCamera(intr, extr, torch.tensor([32]), torch.tensor([40])).intrinsics_inverse(),+ [cam2.intrinsics, cam2.extrinsics],+ ),+ _cam(+ "PinholeCamera.scale",+ lambda intr, extr, s: PinholeCamera(intr, extr, torch.tensor([32]), torch.tensor([40])).scale(s).intrinsics,+ [cam2.intrinsics, cam2.extrinsics, torch.tensor([0.5])],+ ),+ _cam(+ "PinholeCamera.properties",+ lambda intr, extr: (+ lambda c: (+ c.fx,+ c.fy,+ c.cx,+ c.cy,+ c.tx,+ c.ty,+ c.tz,+ c.rt_matrix,+ c.camera_matrix,+ c.rotation_matrix,+ c.translation_vector,+ )+ )(PinholeCamera(intr, extr, torch.tensor([32]), torch.tensor([40]))),+ [cam2.intrinsics, cam2.extrinsics],+ ),+ _cam(+ "pinhole.pinhole_matrix",+ K.geometry.camera.pinhole.pinhole_matrix,+ [torch.tensor([[50.0, 50.0, 20.0, 16.0, 32.0, 40.0, 0.1, 0.2, 0.3, 0.0, 0.0, 0.0]])],+ note="legacy 12-vector pinhole",+ ),+ _cam(+ "pinhole.inverse_pinhole_matrix",+ K.geometry.camera.pinhole.inverse_pinhole_matrix,+ [torch.tensor([[50.0, 50.0, 20.0, 16.0, 32.0, 40.0, 0.1, 0.2, 0.3, 0.0, 0.0, 0.0]])],+ ),+ _cam(+ "pinhole.scale_pinhole",+ K.geometry.camera.pinhole.scale_pinhole,+ [torch.tensor([[50.0, 50.0, 20.0, 16.0, 32.0, 40.0, 0.1, 0.2, 0.3, 0.0, 0.0, 0.0]]), torch.tensor([0.5])],+ ),+ _cam(+ "pinhole.get_optical_pose_base",+ K.geometry.camera.pinhole.get_optical_pose_base,+ [torch.tensor([[50.0, 50.0, 20.0, 16.0, 32.0, 40.0, 0.1, 0.2, 0.3, 0.1, -0.1, 0.05]])],+ note="KORNIA BUG: function body is `raise NotImplementedError` (pinhole.py:628)",+ ),+ _cam(+ "pinhole.homography_i_H_ref",+ K.geometry.camera.pinhole.homography_i_H_ref,+ [+ torch.tensor([[50.0, 50.0, 20.0, 16.0, 32.0, 40.0, 0.1, 0.2, 0.3, 0.1, -0.1, 0.05]]),+ torch.tensor([[50.0, 50.0, 20.0, 16.0, 32.0, 40.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]]),+ ],+ note="KORNIA BUG: calls get_optical_pose_base which is a NotImplementedError stub",+ ),+ _cam(+ "StereoCamera.reproject_disparity_to_3D",+ lambda l, r, d: StereoCamera(l, r).reproject_disparity_to_3D(d),+ [left34, right34, disparity],+ ),+ _cam("StereoCamera.Q", lambda l, r: StereoCamera(l, r).Q, [left34, right34]),+ _cam(+ "stereo.reproject_disparity_to_3D",+ K.geometry.camera.stereo.reproject_disparity_to_3D,+ [disparity, StereoCamera(left34, right34).Q],+ ),+ _cam("project_points_z1", K.geometry.camera.project_points_z1, [cam_pts3]),+ _cam("unproject_points_z1", K.geometry.camera.unproject_points_z1, [z1_pts]),+ _cam("unproject_points_z1[extension]", K.geometry.camera.unproject_points_z1, [z1_pts, torch.rand(N) + 1.0]),+ _cam("dx_project_points_z1", K.geometry.camera.dx_project_points_z1, [cam_pts3]),+ _cam("project_points_orthographic", K.geometry.camera.project_points_orthographic, [cam_pts3]),+ _cam(+ "unproject_points_orthographic", K.geometry.camera.unproject_points_orthographic, [z1_pts, torch.rand(N) + 1.0]+ ),+ _cam("dx_project_points_orthographic", K.geometry.camera.dx_project_points_orthographic, [cam_pts3]),+ _cam("distort_points_affine", K.geometry.camera.distort_points_affine, [z1_pts, aff_params]),+ _cam("undistort_points_affine", K.geometry.camera.undistort_points_affine, [img_pts[0], aff_params]),+ _cam("dx_distort_points_affine", K.geometry.camera.dx_distort_points_affine, [z1_pts, aff_params]),+ _cam("distort_points_kannala_brandt", K.geometry.camera.distort_points_kannala_brandt, [z1_pts, kb_params]),+ _cam(+ "undistort_points_kannala_brandt",+ K.geometry.camera.undistort_points_kannala_brandt,+ [img_pts[0], kb_params],+ note="10 unrolled Gauss-Newton iters",+ ),+ _cam("dx_distort_points_kannala_brandt", K.geometry.camera.dx_distort_points_kannala_brandt, [z1_pts, kb_params]),+ # ------------------------------------------------------------------ calibration+ _cal("distort_points", K.geometry.calibration.distort_points, [img_pts, Kmat, dist5]),+ _cal(+ "distort_points[14]",+ K.geometry.calibration.distort_points,+ [img_pts, Kmat, dist14],+ note="14-coeff model incl. tilt",+ ),+ _cal("distort_points[new_K]", K.geometry.calibration.distort_points, [img_pts, Kmat, dist5, Kmat2]),+ _cal(+ "undistort_points", K.geometry.calibration.undistort_points, [img_pts, Kmat, dist5], note="num_iters=5 default"+ ),+ _cal("undistort_points[14]", K.geometry.calibration.undistort_points, [img_pts, Kmat, dist14]),+ _cal("undistort_image", K.geometry.calibration.undistort_image, [IMG, Kmat[0], dist5[0]]),+ _cal(+ "undistort_image[batch>1]",+ K.geometry.calibration.undistort_image,+ [torch.rand(2, 3, 32, 40), Kmat.expand(2, 3, 3).contiguous(), dist5.expand(2, 5).contiguous()],+ tags=("batch>1",),+ ),+ _cal("tilt_projection", K.geometry.calibration.tilt_projection, [torch.tensor([[0.01]]), torch.tensor([[0.02]])]),+ _cal(+ "tilt_projection[inverse]",+ K.geometry.calibration.tilt_projection,+ [torch.tensor([[0.01]]), torch.tensor([[0.02]])],+ {"return_inverse": True},+ ),+ _cal("solve_pnp_dlt", K.geometry.calibration.solve_pnp_dlt, [X3d, pts2, Kmat2], atol=1e-3),+ _cal("solve_pnp_dlt[weights]", K.geometry.calibration.solve_pnp_dlt, [X3d, pts2, Kmat2, w_ones], atol=1e-3),+ # ------------------------------------------------------------------ depth+ _cd("depth_to_3d", K.geometry.depth.depth_to_3d, [depth_img, Kmat]),+ _cd("depth_to_3d[normalize]", K.geometry.depth.depth_to_3d, [depth_img, Kmat], {"normalize_points": True}),+ _cd("depth_to_3d_v2", K.geometry.depth.depth_to_3d_v2, [depth_img[:, 0], Kmat]),+ _cd(+ "depth_to_3d_v2[xyz_grid]",+ lambda d, k, g: K.geometry.depth.depth_to_3d_v2(d, k, xyz_grid=g),+ [depth_img[:, 0], Kmat, K.geometry.depth.unproject_meshgrid(32, 40, Kmat)],+ ),+ _cd("unproject_meshgrid", lambda k: K.geometry.depth.unproject_meshgrid(32, 40, k), [Kmat], note="H,W baked"),+ _cd("depth_to_normals", K.geometry.depth.depth_to_normals, [depth_img, Kmat]),+ _cd(+ "depth_from_disparity",+ K.geometry.depth.depth_from_disparity,+ [disparity[..., 0], torch.tensor([0.1]), torch.tensor([50.0])],+ ),+ _cd(+ "depth_from_disparity[float]",+ K.geometry.depth.depth_from_disparity,+ [disparity[..., 0]],+ {"baseline": 0.1, "focal": 50.0},+ note="baseline/focal baked",+ ),+ _cd(+ "depth_from_plane_equation",+ K.geometry.depth.depth_from_plane_equation,+ [torch.tensor([[0.1, 0.2, 0.97]]), torch.tensor([[3.0]]), img_pts, Kmat],+ ),+ _cd("warp_frame_depth", K.geometry.depth.warp_frame_depth, [IMG, depth_img, T01, Kmat]),+ _cd(+ "DepthWarper",+ lambda d, p: (lambda w: (w.compute_projection_matrix(cam1), w)[1])(K.geometry.depth.DepthWarper(cam2, 32, 40))( # noqa: PLW0108+ d, p+ ),+ [depth_img, IMG],+ note="cameras baked in module; H,W baked",+ ),+ _cd(+ "DepthWarper.warp_grid",+ lambda d: (lambda w: (w.compute_projection_matrix(cam1), w)[1])(+ K.geometry.depth.DepthWarper(cam2, 32, 40)+ ).warp_grid(d),+ [depth_img],+ note="cameras baked",+ ),+ _cd(+ "DepthWarper.compute_subpixel_step",+ lambda d: (+ (lambda w: (w.compute_projection_matrix(cam1), w)[1])(+ K.geometry.depth.DepthWarper(cam2, 32, 40)+ ).compute_subpixel_step()+ + 0 * d.sum()+ ),+ [torch.zeros(1)],+ note="fully constant graph",+ ),+ _cd(+ "depth_warp",+ lambda d, p: K.geometry.depth.depth_warp(cam2, cam1, d, p, 32, 40),+ [depth_img, IMG],+ note="cameras + H,W baked",+ ),+ # ------------------------------------------------------------------ liegroup+ _clg("So3.exp.matrix", lambda v: So3.exp(v).matrix(), [so3_v]),+ _clg("So3.exp.q", lambda v: So3.exp(v).q.data, [so3_v]),+ _clg("So3.log", lambda v: So3.exp(v).log(), [so3_v]),+ _clg("So3.from_matrix", lambda m: So3.from_matrix(m).q.data, [So3M]),+ _clg("So3.from_wxyz", lambda w: So3.from_wxyz(w).matrix(), [q]),+ _clg("So3.inverse", lambda v: So3.exp(v).inverse().matrix(), [so3_v]),+ _clg("So3.mul", lambda a, b: (So3.exp(a) * So3.exp(b)).matrix(), [so3_v, so3_v.flip(0)]),+ _clg("So3.mul[point]", lambda a, p: So3.exp(a) * p, [so3_v, torch.rand(2, 3)], note="rotate a (B,3) point"),+ _clg("So3.adjoint", lambda v: So3.exp(v).adjoint(), [so3_v]),+ _clg("So3.hat", So3.hat, [so3_v]),+ _clg("So3.vee", lambda v: So3.vee(So3.hat(v)), [so3_v]),+ _clg("So3.Jl", So3.Jl, [so3_v]),+ _clg("So3.Jr", So3.Jr, [so3_v]),+ _clg("So3.left_jacobian", So3.left_jacobian, [so3_v]),+ _clg("So3.right_jacobian", So3.right_jacobian, [so3_v]),+ _clg("So3.rot_x", lambda x: So3.rot_x(x).matrix(), [so2_th]),+ _clg("So3.rot_y", lambda x: So3.rot_y(x).matrix(), [so2_th]),+ _clg("So3.rot_z", lambda x: So3.rot_z(x).matrix(), [so2_th]),+ _clg(+ "So3.random",+ lambda d: So3.random(2, device=d.device, dtype=d.dtype).matrix() + 0 * d,+ [torch.zeros(1)],+ check=False,+ note="random sampling in graph",+ ),+ _clg(+ "So3.identity",+ lambda d: So3.identity(2, device=d.device, dtype=d.dtype).matrix() + 0 * d,+ [torch.zeros(1)],+ note="fully constant graph",+ ),+ _clg("Se3.exp.matrix", lambda v: Se3.exp(v).matrix(), [se3_v]),+ _clg("Se3.log", lambda v: Se3.exp(v).log(), [se3_v]),+ _clg("Se3.from_matrix", lambda m: Se3.from_matrix(m).matrix(), [Se3M]),+ _clg("Se3.from_qxyz", lambda w: Se3.from_qxyz(w).matrix(), [torch.cat([q, torch.rand(2, 3)], -1)]),+ _clg("Se3.inverse", lambda v: Se3.exp(v).inverse().matrix(), [se3_v]),+ _clg("Se3.mul", lambda a, b: (Se3.exp(a) * Se3.exp(b)).matrix(), [se3_v, se3_v.flip(0)]),+ _clg("Se3.mul[point]", lambda a, p: Se3.exp(a) * p, [se3_v, torch.rand(2, 3)], note="transform a (B,3) point"),+ _clg("Se3.adjoint", lambda v: Se3.exp(v).adjoint(), [se3_v]),+ _clg("Se3.hat", Se3.hat, [se3_v]),+ _clg("Se3.vee", lambda v: Se3.vee(Se3.hat(v)), [se3_v]),+ _clg("Se3.trans", lambda x, y, z: Se3.trans(x, y, z).matrix(), [so2_th, so2_th + 1, so2_th - 1]),+ _clg("Se3.rot_x", lambda x: Se3.rot_x(x).matrix(), [so2_th]),+ _clg(+ "Se3.random",+ lambda d: Se3.random(2, device=d.device, dtype=d.dtype).matrix() + 0 * d,+ [torch.zeros(1)],+ check=False,+ note="random sampling in graph",+ ),+ _clg("So2.exp.matrix", lambda th: So2.exp(th).matrix(), [so2_th]),+ _clg("So2.exp.z", lambda th: So2.exp(th).z, [so2_th], note="complex output"),+ _clg("So2.log", lambda th: So2.exp(th).log(), [so2_th]),+ _clg("So2.from_matrix", lambda m: So2.from_matrix(m).log(), [So2M]),+ _clg("So2.inverse", lambda th: So2.exp(th).inverse().matrix(), [so2_th]),+ _clg("So2.mul", lambda a, b: (So2.exp(a) * So2.exp(b)).matrix(), [so2_th, so2_th.flip(0)]),+ _clg("So2.mul[point]", lambda a, p: So2.exp(a) * p, [so2_th, torch.rand(2, 2)]),+ _clg("So2.adjoint", lambda th: So2.exp(th).adjoint(), [so2_th]),+ _clg("So2.hat", So2.hat, [so2_th]),+ _clg("So2.vee", lambda th: So2.vee(So2.hat(th)), [so2_th]),+ _clg(+ "So2.random",+ lambda d: So2.random(2, device=d.device, dtype=d.dtype).matrix() + 0 * d,+ [torch.zeros(1)],+ check=False,+ note="random sampling in graph",+ ),+ _clg("Se2.exp.matrix", lambda v: Se2.exp(v).matrix(), [se2_v]),+ _clg("Se2.log", lambda v: Se2.exp(v).log(), [se2_v]),+ _clg("Se2.from_matrix", lambda m: Se2.from_matrix(m).matrix(), [Se2M]),+ _clg("Se2.inverse", lambda v: Se2.exp(v).inverse().matrix(), [se2_v]),+ _clg("Se2.mul", lambda a, b: (Se2.exp(a) * Se2.exp(b)).matrix(), [se2_v, se2_v.flip(0)]),+ _clg("Se2.mul[point]", lambda a, p: Se2.exp(a) * p, [se2_v, torch.rand(2, 2)]),+ _clg("Se2.adjoint", lambda v: Se2.exp(v).adjoint(), [se2_v]),+ _clg("Se2.hat", Se2.hat, [se2_v]),+ _clg("Se2.vee", lambda v: Se2.vee(Se2.hat(v)), [se2_v]),+ _clg("Se2.trans", lambda x, y: Se2.trans(x, y).matrix(), [so2_th, so2_th + 1]),+ _clg(+ "Se2.random",+ lambda d: Se2.random(2, device=d.device, dtype=d.dtype).matrix() + 0 * d,+ [torch.zeros(1)],+ check=False,+ note="random sampling in graph",+ ),+ # ------------------------------------------------------------------ quaternion+ _cq("Quaternion.matrix", lambda d: Quaternion(d).matrix(), [q]),+ _cq("Quaternion.from_matrix", lambda m: Quaternion.from_matrix(m).data, [Rm]),+ _cq("Quaternion.from_axis_angle", lambda v: Quaternion.from_axis_angle(v).data, [aa]),+ _cq("Quaternion.to_axis_angle", lambda d: Quaternion(d).to_axis_angle(), [q]),+ _cq("Quaternion.from_euler", lambda r, p, y: Quaternion.from_euler(r, p, y).data, list(euler)),+ _cq("Quaternion.to_euler", lambda d: Quaternion(d).to_euler(), [q]),+ _cq("Quaternion.norm", lambda d: Quaternion(d).norm(), [q * 2.0]),+ _cq("Quaternion.squared_norm", lambda d: Quaternion(d).squared_norm(), [q * 2.0]),+ _cq("Quaternion.normalize", lambda d: Quaternion(d).normalize().data, [q * 2.0]),+ _cq("Quaternion.conj", lambda d: Quaternion(d).conj().data, [q]),+ _cq("Quaternion.inv", lambda d: Quaternion(d).inv().data, [q * 2.0]),+ _cq("Quaternion.mul", lambda a, b: (Quaternion(a) * Quaternion(b)).data, [q, qb]),+ _cq(+ "Quaternion.mul[scalar-tensor]",+ lambda a, p: (Quaternion(a) * p).data,+ [q, torch.rand(2)],+ note="scalar (B,) tensor -> scalar quaternion",+ ),+ _cq("Quaternion.add", lambda a, b: (Quaternion(a) + Quaternion(b)).data, [q, qb]),+ _cq("Quaternion.sub", lambda a, b: (Quaternion(a) - Quaternion(b)).data, [q, qb]),+ _cq("Quaternion.neg", lambda a: (-Quaternion(a)).data, [q]),+ _cq("Quaternion.truediv", lambda a, b: (Quaternion(a) / Quaternion(b)).data, [q, qb]),+ _cq("Quaternion.pow", lambda a: (Quaternion(a) ** 0.5).data, [q], note="t=0.5 baked"),+ _cq("Quaternion.slerp", lambda a, b: Quaternion(a).slerp(Quaternion(b), 0.3).data, [q, qb], note="t=0.3 baked"),+ _cq("Quaternion.polar_angle", lambda a: Quaternion(a).polar_angle, [q]),+ _cq(+ "Quaternion.properties",+ lambda a: (lambda Q: (Q.w, Q.x, Q.y, Q.z, Q.real, Q.vec, Q.scalar, Q.coeffs))(Quaternion(a)),+ [q],+ ),+ _cq(+ "Quaternion.random",+ lambda d: Quaternion.random(2, device=d.device, dtype=d.dtype).data + 0 * d,+ [torch.zeros(1)],+ check=False,+ note="random sampling in graph",+ ),+ _cq(+ "Quaternion.identity",+ lambda d: Quaternion.identity(2, device=d.device, dtype=d.dtype).data + 0 * d,+ [torch.zeros(1)],+ note="fully constant graph",+ ),+ _cq(+ "average_quaternions",+ lambda t: K.geometry.quaternion.average_quaternions(Quaternion(t)).data,+ [torch.stack([q[0], qb[0], q[1]])],+ note="eigen-decomposition of 4x4",+ ),+ # ------------------------------------------------------------------ ransac+ case(+ "geometry.ransac.RANSAC[homography,no-seed]",+ "geometry.ransac",+ K.geometry.ransac.RANSAC("homography", inl_th=2.0, max_iter=3, batch_size=64, seed=None),+ [hp1[0], hp2[0]],+ check=False,+ note="diagnostic: seed=None avoids torch.Generator; shows next blocker",+ ),+ _cam(+ "StereoCamera.reproject_disparity_to_3D[baked-cams]",+ lambda d: StereoCamera(left34, right34).reproject_disparity_to_3D(d),+ [disparity],+ note="diagnostic: cameras baked as constants",+ ),+ case(+ "geometry.ransac.RANSAC[homography]",+ "geometry.ransac",+ K.geometry.ransac.RANSAC("homography", inl_th=2.0, max_iter=3, batch_size=64, seed=0),+ [torch.cat([hp1[0], torch.rand(20, 2) * 40], 0), torch.cat([hp2[0], torch.rand(20, 2) * 40], 0)],+ check=False,+ note="sampling inside; max_iter=3; 12 inliers + 20 outliers",+ ),+ case(+ "geometry.ransac.RANSAC[fundamental]",+ "geometry.ransac",+ K.geometry.ransac.RANSAC("fundamental", inl_th=1.0, max_iter=3, batch_size=64, seed=0),+ [torch.cat([pts1[0], torch.rand(20, 2) * 40], 0), torch.cat([pts2[0], torch.rand(20, 2) * 40], 0)],+ check=False,+ note="sampling inside; 8pt inside",+ ),+ case(+ "geometry.ransac.RANSAC[fundamental_7pt]",+ "geometry.ransac",+ K.geometry.ransac.RANSAC("fundamental_7pt", inl_th=1.0, max_iter=3, batch_size=64, seed=0),+ [torch.cat([pts1[0], torch.rand(20, 2) * 40], 0), torch.cat([pts2[0], torch.rand(20, 2) * 40], 0)],+ check=False,+ note="sampling inside; 7pt inside",+ ),+ case(+ "geometry.ransac.RANSAC[homography_from_linesegments]",+ "geometry.ransac",+ K.geometry.ransac.RANSAC("homography_from_linesegments", inl_th=2.0, max_iter=3, batch_size=64, seed=0),+ [torch.cat([ls1[0], torch.rand(20, 2, 2) * 40], 0), torch.cat([ls2[0], torch.rand(20, 2, 2) * 40], 0)],+ check=False,+ note="sampling inside",+ ),+ case(+ "geometry.ransac.RANSAC.estimate_model_from_minsample",+ "geometry.ransac",+ K.geometry.ransac.RANSAC("homography", seed=0),+ [hp1_4, hp2_4],+ method="estimate_model_from_minsample",+ atol=1e-3,+ ),+ case(+ "geometry.ransac.RANSAC.verify",+ "geometry.ransac",+ lambda k1, k2, m: K.geometry.ransac.RANSAC("homography", seed=0).verify(k1, k2, m, 2.0)[:2],+ [hp1[0], hp2[0], H_gt],+ note="inl_th baked; returns (inliers, models, score float, ...) -> only tensors",+ ),+ # ------------------------------------------------------------------ solvers+ _cs("solve_quadratic", K.geometry.solvers.solve_quadratic, [torch.tensor([[1.0, -3.0, 2.0], [2.0, 0.5, -1.0]])]),+ _cs(+ "solve_cubic", K.geometry.solvers.solve_cubic, [torch.tensor([[1.0, -6.0, 11.0, -6.0], [1.0, 0.0, -1.0, 0.5]])]+ ),+ _cs(+ "solve_quartic",+ K.geometry.solvers.solve_quartic,+ [torch.tensor([[1.0, -10.0, 35.0, -50.0, 24.0], [1.0, 0.0, -5.0, 0.0, 4.0]])],+ ),+ _cs("multiply_deg_one_poly", K.geometry.solvers.multiply_deg_one_poly, [torch.rand(2, 4), torch.rand(2, 4)]),+ _cs(+ "multiply_deg_two_one_poly", K.geometry.solvers.multiply_deg_two_one_poly, [torch.rand(2, 10), torch.rand(2, 4)]+ ),+ _cs("determinant_to_polynomial", K.geometry.solvers.determinant_to_polynomial, [torch.rand(2, 3, 13)]),+ _cs("null_vector_3x4", K.geometry.solvers.null_vector_3x4, [P2], atol=1e-3),+ # ------------------------------------------------------------------ pointcloud+ case(+ "geometry.pointcloud.save_pointcloud_ply", "geometry.pointcloud", None, [], skip="file I/O (writes PLY to disk)"+ ),+ case(+ "geometry.pointcloud.load_pointcloud_ply",+ "geometry.pointcloud",+ None,+ [],+ skip="file I/O (reads PLY from disk)",+ ),+ case(+ "geometry.pointcloud.save_pointcloud_ply_binary",+ "geometry.pointcloud",+ None,+ [],+ skip="file I/O (writes PLY to disk)",+ ),+ case(+ "geometry.pointcloud.load_pointcloud_ply_binary",+ "geometry.pointcloud",+ None,+ [],+ skip="file I/O (reads PLY from disk)",+ ),+]++if __name__ == "__main__":+ run_cases(CASES, sys.argv[1], only=sys.argv[2:] or None)diff --git a/docs/export_support/cases_misc.py b/docs/export_support/cases_misc.pynew file mode 100644index 000000000..b82121257--- /dev/null+++ b/docs/export_support/cases_misc.py@@ -0,0 +1,1274 @@+# LICENSE HEADER MANAGED BY add-license-header+#+# Copyright 2018 Kornia Team+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+#++"""ONNX export survey β area `misc`: everything in color/enhance/filters/losses/metrics/utils/morphology+not already covered by the first pass (survey.json)."""++import sys++import torch+from harness import case, run_cases++import kornia as K+import kornia.color as KC+import kornia.enhance as KE+import kornia.filters as KF+import kornia.losses as KL+import kornia.metrics as KM+from kornia.color import CFA, ColorMap, ColorMapType+from kornia.enhance import ThresholdType+from kornia.utils import torch_meshgrid as _torch_meshgrid++torch.manual_seed(0)++IMG = torch.rand(1, 3, 32, 40)+IMG2 = torch.rand(1, 3, 32, 40)+IMGB = torch.rand(2, 3, 48, 64)+GRAY = torch.rand(1, 1, 32, 40)+RGBA = torch.rand(1, 4, 32, 40)+VOL = torch.rand(1, 1, 8, 16, 16)+VOL3 = torch.rand(1, 3, 8, 16, 16)+RAW = torch.rand(1, 1, 32, 40)+Y420 = torch.rand(1, 1, 32, 40)+UV420 = torch.rand(1, 2, 16, 20)+UV422 = torch.rand(1, 2, 32, 20)+NORMALS = torch.nn.functional.normalize(torch.randn(1, 3, 32, 40), dim=1)+IMG255 = torch.rand(1, 3, 32, 40) * 255+GRAYINT = (torch.rand(1, 1, 32, 40) * 255).long()++CASES = []+++def add(*a, **k):+ CASES.append(case(*a, **k))+++# ------------------------------------------------------------------------------------------------ color+g = "color"+# module forms of the already-surveyed functions+for name, mod, inp in [+ ("RgbToGrayscale", KC.RgbToGrayscale(), IMG),+ ("BgrToGrayscale", KC.BgrToGrayscale(), IMG),+ ("GrayscaleToRgb", KC.GrayscaleToRgb(), GRAY),+ ("RgbToBgr", KC.RgbToBgr(), IMG),+ ("BgrToRgb", KC.BgrToRgb(), IMG),+ ("RgbToRgba", KC.RgbToRgba(1.0), IMG),+ ("BgrToRgba", KC.BgrToRgba(1.0), IMG),+ ("RgbaToRgb", KC.RgbaToRgb(), RGBA),+ ("RgbaToBgr", KC.RgbaToBgr(), RGBA),+ ("RgbToLinearRgb", KC.RgbToLinearRgb(), IMG),+ ("LinearRgbToRgb", KC.LinearRgbToRgb(), IMG),+ ("RgbToHsv", KC.RgbToHsv(), IMG),+ ("HsvToRgb", KC.HsvToRgb(), IMG),+ ("RgbToHls", KC.RgbToHls(), IMG),+ ("HlsToRgb", KC.HlsToRgb(), IMG),+ ("RgbToLab", KC.RgbToLab(), IMG),+ ("RgbToLuv", KC.RgbToLuv(), IMG),+ ("RgbToXyz", KC.RgbToXyz(), IMG),+ ("XyzToRgb", KC.XyzToRgb(), IMG),+ ("RgbToYcbcr", KC.RgbToYcbcr(), IMG),+ ("YcbcrToRgb", KC.YcbcrToRgb(), IMG),+ ("RgbToYuv", KC.RgbToYuv(), IMG),+ ("YuvToRgb", KC.YuvToRgb(), IMG),+ ("RgbToYuv420", KC.RgbToYuv420(), IMG),+ ("RgbToYuv422", KC.RgbToYuv422(), IMG),+ ("Sepia", KC.Sepia(), IMG),+ ("RgbToRgb255", KC.RgbToRgb255(), IMG),+ ("Rgb255ToRgb", KC.Rgb255ToRgb(), IMG255),+ ("NormalsToRgb255", KC.NormalsToRgb255(), NORMALS),+ ("Rgb255ToNormals", KC.Rgb255ToNormals(), IMG255),+ ("RawToRgb", KC.RawToRgb(CFA.BG), RAW),+ ("RgbToRaw", KC.RgbToRaw(CFA.BG), IMG),+ ("RawToRgb2x2Downscaled", KC.RawToRgb2x2Downscaled(CFA.BG), RAW),+]:+ add(f"color.{name}", g, mod, [inp])+add(+ "color.RgbToGrayscale[weights]",+ g,+ KC.RgbToGrayscale(rgb_weights=torch.tensor([0.2, 0.5, 0.3])),+ [IMG],+ note="rgb_weights given at construction -> constant",+)+add("color.LabToRgb", g, KC.LabToRgb(), [KC.rgb_to_lab(IMG)])+add("color.LuvToRgb", g, KC.LuvToRgb(), [KC.rgb_to_luv(IMG)])+add("color.Yuv420ToRgb", g, KC.Yuv420ToRgb(), [Y420, UV420 - 0.5])+add("color.Yuv422ToRgb", g, KC.Yuv422ToRgb(), [Y420, UV422 - 0.5])+# functions not in the first pass+add("color.bgr_to_grayscale", g, KC.bgr_to_grayscale, [IMG])+add("color.rgb_to_y", g, KC.rgb_to_y, [IMG])+add("color.bgr_to_rgba", g, KC.bgr_to_rgba, [IMG], {"alpha_val": 1.0}, note="alpha baked")+add("color.bgr_to_rgba[tensor_alpha]", g, KC.bgr_to_rgba, [IMG, torch.rand(1, 1, 32, 40)], note="alpha as live tensor")+add("color.rgba_to_rgb", g, KC.rgba_to_rgb, [RGBA])+add(+ "color.rgba_to_rgb[bg]",+ g,+ KC.rgba_to_rgb,+ [RGBA, torch.tensor([0.0, 0.0, 1.0]).view(1, 3, 1, 1)],+ note="background color live tensor (1,3,1,1)",+)+add(+ "color.rgba_to_rgb[bg_tuple]",+ g,+ KC.rgba_to_rgb,+ [RGBA],+ {"background_color": (0.0, 0.0, 1.0)},+ note="tuple bg baked",+)+add("color.rgba_to_bgr", g, KC.rgba_to_bgr, [RGBA])+add("color.rgb_to_rgb255", g, KC.rgb_to_rgb255, [IMG])+add("color.rgb255_to_rgb", g, KC.rgb255_to_rgb, [IMG255])+add("color.normals_to_rgb255", g, KC.normals_to_rgb255, [NORMALS])+add("color.rgb255_to_normals", g, KC.rgb255_to_normals, [IMG255])+add("color.sepia_from_rgb", g, KC.sepia_from_rgb, [IMG])+add("color.sepia_from_rgb[no_rescale]", g, KC.sepia_from_rgb, [IMG], {"rescale": False})+add("color.rgb_to_yuv420", g, KC.rgb_to_yuv420, [IMG], note="returns (y, uv)")+add("color.rgb_to_yuv422", g, KC.rgb_to_yuv422, [IMG], note="returns (y, uv)")+add("color.yuv420_to_rgb", g, KC.yuv420_to_rgb, [Y420, UV420 - 0.5])+add("color.yuv422_to_rgb", g, KC.yuv422_to_rgb, [Y420, UV422 - 0.5])+for cfa in CFA:+ add(f"color.raw_to_rgb[{cfa.name}]", g, KC.raw_to_rgb, [RAW], {"cfa": cfa}, note="cfa baked")+add("color.raw_to_rgb[batch]", g, KC.raw_to_rgb, [torch.rand(2, 1, 48, 64)], {"cfa": CFA.RG}, tags=("batch>1",))+add("color.rgb_to_raw", g, KC.rgb_to_raw, [IMG], {"cfa": CFA.BG})+add("color.rgb_to_raw[GR]", g, KC.rgb_to_raw, [IMG], {"cfa": CFA.GR})+add("color.raw_to_rgb_2x2_downscaled", g, KC.raw_to_rgb_2x2_downscaled, [RAW], {"cfa": CFA.BG})+add("color.raw_to_rgb_2x2_downscaled[RG]", g, KC.raw_to_rgb_2x2_downscaled, [RAW], {"cfa": CFA.RG})+add("color.rgb_to_lab[batch]", g, KC.rgb_to_lab, [IMGB], tags=("batch>1",))+add("color.rgb_to_hsv[eps]", g, KC.rgb_to_hsv, [IMG], {"eps": 1e-8})+add("color.lab_to_rgb[noclip]", g, KC.lab_to_rgb, [KC.rgb_to_lab(IMG)], {"clip": False})+# colormap+cm_vir = ColorMap(base=ColorMapType.viridis, num_colors=64)+cm_jet = ColorMap(base="jet", num_colors=16)+add("color.ApplyColorMap", g, KC.ApplyColorMap(cm_vir), [GRAY], note="viridis/64")+add("color.ApplyColorMap[jet16,int]", g, KC.ApplyColorMap(cm_jet), [GRAYINT], note="jet/16, int64 input 0..255")+add(+ "color.apply_colormap[autumn]",+ g,+ KC.apply_colormap,+ [GRAY],+ {"colormap": ColorMap(base=ColorMapType.autumn)},+ note="colormap object baked",+)+add(+ "color.apply_colormap[custom_rgb]",+ g,+ KC.apply_colormap,+ [GRAY],+ {"colormap": ColorMap(base=[[0.0, 0.5, 1.0], [1.0, 0.5, 0.0]], num_colors=8)},+ note="custom 2-stop map, 8 colors",+)+add(+ "color.apply_colormap[batch]",+ g,+ KC.apply_colormap,+ [torch.rand(2, 1, 48, 64)],+ {"colormap": ColorMap(base=ColorMapType.turbo)},+ tags=("batch>1",),+)+add(+ "color.ColorMap",+ g,+ None,+ [],+ skip="ColorMap is a lookup-table container (constructor only), covered via apply_colormap",+)+add("color.ColorMapType", g, None, [], skip="Enum")+add("color.CFA", g, None, [], skip="Enum")+add("color.RGBColor", g, None, [], skip="type alias")++# ------------------------------------------------------------------------------------------------ enhance+g = "enhance"+add("enhance.Normalize", g, KE.Normalize(mean=torch.tensor([0.5, 0.4, 0.3]), std=torch.tensor([0.2, 0.25, 0.3])), [IMG])+add("enhance.Normalize[float]", g, KE.Normalize(mean=0.5, std=0.2), [IMG])+add(+ "enhance.Denormalize",+ g,+ KE.Denormalize(mean=torch.tensor([0.5, 0.4, 0.3]), std=torch.tensor([0.2, 0.25, 0.3])),+ [IMG],+)+add(+ "enhance.normalize[live_stats]",+ g,+ KE.normalize,+ [IMG, torch.tensor([0.5, 0.4, 0.3]), torch.tensor([0.2, 0.25, 0.3])],+ note="mean/std as live tensors",+)+add(+ "enhance.denormalize[live_stats]",+ g,+ KE.denormalize,+ [IMG, torch.tensor([0.5, 0.4, 0.3]), torch.tensor([0.2, 0.25, 0.3])],+ note="mean/std as live tensors",+)+add("enhance.AddWeighted", g, KE.AddWeighted(0.6, 0.4, 0.1), [IMG, IMG2])+add(+ "enhance.AddWeighted[tensor]",+ g,+ KE.AddWeighted(torch.full((1, 3, 32, 40), 0.6), torch.full((1, 3, 32, 40), 0.4), torch.full((1, 3, 32, 40), 0.1)),+ [IMG, IMG2],+ note="tensor alpha/beta/gamma must equal src shape (kornia check); constructed -> constants",+)+add(+ "enhance.add_weighted[live_weights]",+ g,+ KE.add_weighted,+ [IMG, torch.full((1, 3, 32, 40), 0.6), IMG2, torch.full((1, 3, 32, 40), 0.4), torch.full((1, 3, 32, 40), 0.1)],+ note="alpha/beta/gamma live tensors (must be full src shape)",+)+add("enhance.AdjustBrightness", g, KE.AdjustBrightness(0.2), [IMG])+add("enhance.AdjustBrightnessAccumulative", g, KE.AdjustBrightnessAccumulative(0.2), [IMG])+add("enhance.adjust_brightness_accumulative", g, KE.adjust_brightness_accumulative, [IMG], {"factor": 0.2})+add(+ "enhance.adjust_brightness_accumulative[live]",+ g,+ KE.adjust_brightness_accumulative,+ [IMG, torch.tensor([0.2])],+ note="factor live",+)+add("enhance.AdjustContrast", g, KE.AdjustContrast(0.8), [IMG])+add("enhance.AdjustContrastWithMeanSubtraction", g, KE.AdjustContrastWithMeanSubtraction(0.8), [IMG])+add("enhance.AdjustGamma", g, KE.AdjustGamma(1.5, 1.2), [IMG])+add("enhance.AdjustHue", g, KE.AdjustHue(0.5), [IMG])+add("enhance.AdjustSaturation", g, KE.AdjustSaturation(1.5), [IMG])+add("enhance.AdjustSaturationWithGraySubtraction", g, KE.AdjustSaturationWithGraySubtraction(1.5), [IMG])+add(+ "enhance.adjust_saturation_with_gray_subtraction",+ g,+ KE.adjust_saturation_with_gray_subtraction,+ [IMG],+ {"factor": 1.5},+)+add(+ "enhance.adjust_saturation_with_gray_subtraction[live]",+ g,+ KE.adjust_saturation_with_gray_subtraction,+ [IMG, torch.tensor([1.5])],+ note="factor live",+)+add(+ "enhance.adjust_saturation_raw",+ g,+ KE.adjust_saturation_raw,+ [KC.rgb_to_hsv(IMG)],+ {"factor": 1.5},+ note="HSV input",+)+add("enhance.adjust_hue_raw", g, KE.adjust_hue_raw, [KC.rgb_to_hsv(IMG)], {"factor": 0.5}, note="HSV input")+add("enhance.adjust_hue_raw[live]", g, KE.adjust_hue_raw, [KC.rgb_to_hsv(IMG), torch.tensor([0.5])], note="factor live")+add("enhance.AdjustLog", g, KE.AdjustLog(gain=1.0), [IMG])+add("enhance.AdjustLog[inv]", g, KE.AdjustLog(gain=1.0, inv=True), [IMG])+add("enhance.AdjustSigmoid", g, KE.AdjustSigmoid(), [IMG])+add("enhance.AdjustSigmoid[inv]", g, KE.AdjustSigmoid(inv=True), [IMG])+add("enhance.Invert", g, KE.Invert(), [IMG])+add("enhance.Invert[max_val]", g, KE.Invert(max_val=torch.tensor(255.0)), [IMG255])+add("enhance.Rescale", g, KE.Rescale(2.0), [IMG])+add("enhance.Threshold", g, KE.Threshold(0.5, 1.0), [IMG], note="THRESH_BINARY")+add("enhance.threshold", g, KE.threshold, [IMG], {"thresh": 0.5, "maxval": 1.0})+add("enhance.threshold[live]", g, KE.threshold, [IMG, torch.tensor(0.5), torch.tensor(1.0)], note="thresh/maxval live")+for t in ThresholdType:+ if t.name == "THRESH_BINARY":+ continue+ add(+ f"enhance.threshold[{t.name}]",+ g,+ KE.threshold,+ [IMG],+ {"thresh": 0.5, "maxval": 1.0, "type": t},+ note="THRESH_OTSU raises NotImplementedError in kornia (eager-fail is kornia's, not the spec)"+ if t.name == "THRESH_OTSU"+ else "",+ )+add("enhance.ThresholdType", g, None, [], skip="Enum")+add("enhance.IntegralImage", g, KE.IntegralImage(), [IMG])+add("enhance.IntegralTensor", g, KE.IntegralTensor((-2, -1)), [IMG])+add("enhance.integral_image", g, KE.integral_image, [IMG])+add("enhance.integral_tensor", g, KE.integral_tensor, [IMG], {"dim": (-2, -1)})+add("enhance.integral_tensor[3d]", g, KE.integral_tensor, [VOL], {"dim": (-3, -2, -1)}, tags=("3d",))+add("enhance.shift_rgb", g, KE.shift_rgb, [IMG, torch.tensor([0.1]), torch.tensor([-0.1]), torch.tensor([0.05])])+add(+ "enhance.shift_rgb[batch]",+ g,+ KE.shift_rgb,+ [IMGB, torch.tensor([0.1, 0.2]), torch.tensor([-0.1, 0.0]), torch.tensor([0.05, 0.1])],+ tags=("batch>1",),+)+add("enhance.equalize3d", g, KE.equalize3d, [VOL3], tags=("3d",))+add("enhance.equalize[batch]", g, KE.equalize, [IMGB], tags=("batch>1",))+add(+ "enhance.histogram",+ g,+ KE.histogram,+ [torch.rand(1, 64), torch.linspace(0, 1, 32), torch.tensor(0.05)],+ note="bins and bandwidth live tensors",+)+add(+ "enhance.histogram2d",+ g,+ KE.histogram2d,+ [torch.rand(2, 64), torch.rand(2, 64), torch.linspace(0, 1, 16), torch.tensor(0.05)],+ note="bins/bandwidth live",+)+add(+ "enhance.image_histogram2d",+ g,+ KE.image_histogram2d,+ [IMG],+ {"min": 0.0, "max": 1.0, "n_bins": 32},+ note="n_bins baked; returns (hist, pdf-or-zeros)",+)+add(+ "enhance.image_histogram2d[pdf,gaussian]",+ g,+ KE.image_histogram2d,+ [IMG],+ {"min": 0.0, "max": 1.0, "n_bins": 32, "return_pdf": True, "kernel": "gaussian"},+)+add(+ "enhance.image_histogram2d[centers]",+ g,+ KE.image_histogram2d,+ [+ IMG,+ ],+ {"min": 0.0, "max": 1.0, "n_bins": 16, "centers": torch.linspace(0, 1, 16), "kernel": "epanechnikov"},+ note="centers tensor passed as kwarg -> constant",+)+add("enhance.normalize_min_max[range]", g, KE.normalize_min_max, [IMG], {"min_val": -1.0, "max_val": 1.0})+add(+ "enhance.linear_transform",+ g,+ KE.linear_transform,+ [torch.rand(8, 3, 4, 5), torch.eye(60) * 0.5 + 0.01, torch.rand(1, 60)],+ note="transform matrix/mean live",+)+add("enhance.zca_mean", g, KE.zca_mean, [torch.rand(16, 3, 4, 5)], note="returns (mean, T, None)")+add(+ "enhance.zca_mean[inverse]",+ g,+ KE.zca_mean,+ [torch.rand(16, 3, 4, 5)],+ {"return_inverse": True},+ note="returns (mean, T, T_inv)",+)+add("enhance.zca_whiten", g, KE.zca_whiten, [torch.rand(16, 3, 4, 5)])+_zca_data = torch.rand(16, 3, 4, 5)+_zca = KE.ZCAWhitening().fit(_zca_data)+add(+ "enhance.ZCAWhitening[transform]",+ g,+ _zca,+ [_zca_data[:4]],+ note="fit() done eagerly; exports transform with fitted stats",+)+_zca_inv = KE.ZCAWhitening(compute_inv=True).fit(_zca_data)+add(+ "enhance.ZCAWhitening[inverse_transform]",+ g,+ _zca_inv,+ [_zca_inv(_zca_data[:4])],+ method="inverse_transform",+ note="compute_inv=True",+)+add(+ "enhance.ZCAWhitening[include_fit]",+ g,+ KE.ZCAWhitening(),+ [_zca_data],+ {"include_fit": True},+ note="fit inside graph (SVD)",+)+add(+ "enhance.JPEGCodecDifferentiable",+ g,+ KE.JPEGCodecDifferentiable(),+ [torch.rand(1, 3, 32, 48), torch.tensor([50.0])],+ note="jpeg_quality live; H,W multiple of 16",+ atol=2e-3,+)+add(+ "enhance.JPEGCodecDifferentiable[batch]",+ g,+ KE.JPEGCodecDifferentiable(),+ [torch.rand(2, 3, 48, 64), torch.tensor([99.0, 10.0])],+ tags=("batch>1",),+ atol=2e-3,+)+add(+ "enhance.JPEGCodecDifferentiable[custom_qt]",+ g,+ KE.JPEGCodecDifferentiable(+ quantization_table_y=torch.randint(1, 100, (8, 8)).float(),+ quantization_table_c=torch.randint(1, 100, (8, 8)).float(),+ ),+ [torch.rand(1, 3, 32, 48), torch.tensor([50.0])],+ atol=2e-3,+)++# ------------------------------------------------------------------------------------------------ filters+g = "filters"+KER3 = torch.ones(1, 3, 3, 3) / 27+KER2 = torch.rand(1, 3, 5)+add("filters.filter3d", g, KF.filter3d, [VOL, KER3], tags=("3d",))+add(+ "filters.filter3d[reflect,conv]",+ g,+ KF.filter3d,+ [VOL, torch.rand(1, 3, 3, 3)],+ {"border_type": "reflect", "behaviour": "conv"},+ tags=("3d",),+)+add(+ "filters.filter3d[constant,normalized]",+ g,+ KF.filter3d,+ [VOL3, torch.rand(1, 3, 3, 3)],+ {"border_type": "constant", "normalized": True},+ tags=("3d",),+)+add("filters.filter3d[circular]", g, KF.filter3d, [VOL, KER3], {"border_type": "circular"}, tags=("3d",))+add(+ "filters.filter3d[batch_kernels]",+ g,+ KF.filter3d,+ [torch.rand(2, 1, 8, 16, 16), torch.rand(2, 3, 3, 3)],+ tags=("3d", "batch>1"),+ note="per-sample kernel B=2",+)+add("filters.convolve3d", g, KF.convolve3d, [VOL, torch.rand(1, 3, 3, 3)], tags=("3d",))+add("filters.correlate3d", g, KF.correlate3d, [VOL, torch.rand(1, 3, 3, 3)], tags=("3d",))+add("filters.convolve2d", g, KF.convolve2d, [IMG, KER2])+add("filters.convolve2d[valid]", g, KF.convolve2d, [IMG, KER2], {"padding": "valid"})+add("filters.correlate2d", g, KF.correlate2d, [IMG, KER2])+add("filters.fft_conv", g, KF.fft_conv, [IMG, torch.rand(1, 5, 5)], note="corr, reflect, same")+add(+ "filters.fft_conv[conv,valid]",+ g,+ KF.fft_conv,+ [IMG, torch.rand(1, 5, 5)],+ {"behaviour": "conv", "padding": "valid"},+)+add(+ "filters.fft_conv[normalized]",+ g,+ KF.fft_conv,+ [IMG, torch.rand(1, 5, 5)],+ {"normalized": True, "border_type": "replicate"},+)+add("filters.filter2d_separable", g, KF.filter2d_separable, [IMG, torch.rand(1, 5), torch.rand(1, 3)])+add(+ "filters.filter2d_separable[batch_kernels]",+ g,+ KF.filter2d_separable,+ [IMGB, torch.rand(2, 5), torch.rand(2, 3)],+ tags=("batch>1",),+)+for bt in ("constant", "replicate", "circular"):+ add(f"filters.filter2d[{bt}]", g, KF.filter2d, [IMG, torch.rand(1, 3, 5)], {"border_type": bt})+add("filters.filter2d[valid]", g, KF.filter2d, [IMG, torch.rand(1, 3, 5)], {"padding": "valid"})+add("filters.filter2d[normalized]", g, KF.filter2d, [IMG, torch.rand(1, 3, 5)], {"normalized": True})+add("filters.filter2d[batch_kernels]", g, KF.filter2d, [IMGB, torch.rand(2, 3, 5)], tags=("batch>1",))+add("filters.filter2d[even_kernel]", g, KF.filter2d, [IMG, torch.rand(1, 4, 4)], note="even kernel size")+add("filters.filter2d[conv]", g, KF.filter2d, [IMG, torch.rand(1, 3, 5)], {"behaviour": "conv"})+add(+ "filters.gaussian_blur2d[tensor_sigma]",+ g,+ lambda x, s: KF.gaussian_blur2d(x, (5, 5), s),+ [IMG, torch.tensor([[1.5, 2.0]])],+ note="sigma live tensor (B,2); kernel_size baked",+)+add(+ "filters.gaussian_blur2d[nonseparable]",+ g,+ KF.gaussian_blur2d,+ [IMG],+ {"kernel_size": (5, 3), "sigma": (1.5, 1.0), "separable": False},+)+add(+ "filters.gaussian_blur2d[tensor_sigma,batch]",+ g,+ lambda x, s: KF.gaussian_blur2d(x, (5, 5), s),+ [IMGB, torch.tensor([[1.5, 2.0], [0.7, 0.9]])],+ tags=("batch>1",),+)+add(+ "filters.gaussian_blur2d[tensor_sigma,nonsep]",+ g,+ lambda x, s: KF.gaussian_blur2d(x, (5, 5), s, separable=False),+ [IMG, torch.tensor([[1.5, 2.0]])],+)+add("filters.gaussian_blur2d_t", g, None, [], skip="deprecated alias of gaussian_blur2d")+add("filters.get_gaussian_kernel1d_t", g, None, [], skip="deprecated alias of get_gaussian_kernel1d")+add("filters.get_gaussian_kernel2d_t", g, None, [], skip="deprecated alias of get_gaussian_kernel2d")+add("filters.get_gaussian_kernel3d_t", g, None, [], skip="deprecated alias of get_gaussian_kernel3d")+add(+ "filters.gaussian",+ g,+ lambda s: KF.gaussian(5, s),+ [torch.tensor([[1.5]])],+ note="sigma live (1,1); window_size baked",+)+add("filters.gaussian[mean]", g, lambda s: KF.gaussian(5, s, mean=0.5), [torch.tensor([[1.5]])])+add(+ "filters.get_gaussian_kernel1d",+ g,+ lambda s: KF.get_gaussian_kernel1d(5, s),+ [torch.tensor([[1.5]])],+ note="sigma live",+)+add(+ "filters.get_gaussian_kernel1d[even]",+ g,+ lambda s: KF.get_gaussian_kernel1d(4, s, force_even=True),+ [torch.tensor([[1.5]])],+)+add(+ "filters.get_gaussian_kernel1d[float_sigma]",+ g,+ lambda d: KF.get_gaussian_kernel1d(5, 1.5) + d * 0,+ [torch.zeros(1)],+ note="all-constant graph; dummy input",+)+add(+ "filters.get_gaussian_discrete_kernel1d",+ g,+ lambda s: KF.get_gaussian_discrete_kernel1d(5, s),+ [torch.tensor([[1.5]])],+ note="sigma live",+)+add(+ "filters.get_gaussian_erf_kernel1d",+ g,+ lambda s: KF.get_gaussian_erf_kernel1d(5, s),+ [torch.tensor([[1.5]])],+ note="sigma live",+)+add(+ "filters.get_gaussian_kernel2d",+ g,+ lambda s: KF.get_gaussian_kernel2d((5, 3), s),+ [torch.tensor([[1.5, 2.0]])],+ note="sigma live",+)+add(+ "filters.get_gaussian_kernel2d[batch]",+ g,+ lambda s: KF.get_gaussian_kernel2d((5, 5), s),+ [torch.tensor([[1.5, 2.0], [0.5, 0.9]])],+ tags=("batch>1",),+)+add(+ "filters.get_gaussian_kernel3d",+ g,+ lambda s: KF.get_gaussian_kernel3d((3, 5, 3), s),+ [torch.tensor([[1.5, 2.0, 1.0]])],+ tags=("3d",),+ note="sigma live",+)+add(+ "filters.get_hanning_kernel1d",+ g,+ lambda d: KF.get_hanning_kernel1d(9) + d * 0,+ [torch.zeros(1)],+ note="constant graph",+)+add(+ "filters.get_hanning_kernel2d",+ g,+ lambda d: KF.get_hanning_kernel2d((5, 7)) + d * 0,+ [torch.zeros(1)],+ note="constant graph",+)+add(+ "filters.get_laplacian_kernel1d",+ g,+ lambda d: KF.get_laplacian_kernel1d(5) + d * 0,+ [torch.zeros(1)],+ note="constant graph",+)+add(+ "filters.get_laplacian_kernel2d",+ g,+ lambda d: KF.get_laplacian_kernel2d((5, 3)) + d * 0,+ [torch.zeros(1)],+ note="constant graph",+)+add("filters.laplacian_1d", g, lambda d: KF.laplacian_1d(5) + d * 0, [torch.zeros(1)], note="constant graph")+add("filters.get_box_kernel1d", g, lambda d: KF.get_box_kernel1d(5) + d * 0, [torch.zeros(1)], note="constant graph")+add(+ "filters.get_box_kernel2d",+ g,+ lambda d: KF.get_box_kernel2d((3, 5)) + d * 0,+ [torch.zeros(1)],+ note="constant graph",+)+add(+ "filters.get_binary_kernel2d",+ g,+ lambda d: KF.get_binary_kernel2d((3, 3)) + d * 0,+ [torch.zeros(1)],+ note="constant graph",+)+add("filters.get_diff_kernel2d", g, lambda d: KF.get_diff_kernel2d() + d * 0, [torch.zeros(1)], note="constant graph")+add("filters.get_sobel_kernel2d", g, lambda d: KF.get_sobel_kernel2d() + d * 0, [torch.zeros(1)], note="constant graph")+add(+ "filters.get_spatial_gradient_kernel2d[sobel,2]",+ g,+ lambda d: KF.get_spatial_gradient_kernel2d("sobel", 2) + d * 0,+ [torch.zeros(1)],+ note="constant graph",+)+add(+ "filters.get_spatial_gradient_kernel2d[diff,1]",+ g,+ lambda d: KF.get_spatial_gradient_kernel2d("diff", 1) + d * 0,+ [torch.zeros(1)],+ note="constant graph",+)+add(+ "filters.get_spatial_gradient_kernel3d[diff,1]",+ g,+ lambda d: KF.get_spatial_gradient_kernel3d("diff", 1) + d * 0,+ [torch.zeros(1)],+ note="constant graph",+ tags=("3d",),+)+add(+ "filters.get_spatial_gradient_kernel3d[diff,2]",+ g,+ lambda d: KF.get_spatial_gradient_kernel3d("diff", 2) + d * 0,+ [torch.zeros(1)],+ note="constant graph",+ tags=("3d",),+)+add(+ "filters.get_motion_kernel2d",+ g,+ lambda a, d: KF.get_motion_kernel2d(5, a, d),+ [torch.tensor([30.0]), torch.tensor([0.5])],+ note="angle/direction live; kernel_size baked",+)+add(+ "filters.get_motion_kernel2d[bilinear]",+ g,+ lambda a, d: KF.get_motion_kernel2d(5, a, d, mode="bilinear"),+ [torch.tensor([30.0]), torch.tensor([0.5])],+)+add(+ "filters.get_motion_kernel2d[float]",+ g,+ lambda d: KF.get_motion_kernel2d(5, 30.0, 0.5) + d * 0,+ [torch.zeros(1)],+ note="constant graph",+)+add(+ "filters.get_motion_kernel3d",+ g,+ lambda a, d: KF.get_motion_kernel3d(5, a, d),+ [torch.tensor([[30.0, 10.0, 20.0]]), torch.tensor([0.5])],+ tags=("3d",),+ note="angle/direction live",+)+add(+ "filters.get_motion_kernel3d[float]",+ g,+ lambda d: KF.get_motion_kernel3d(5, (30.0, 10.0, 20.0), 0.5) + d * 0,+ [torch.zeros(1)],+ tags=("3d",),+ note="constant graph",+)+add(+ "filters.motion_blur3d",+ g,+ KF.motion_blur3d,+ [VOL],+ {"kernel_size": 3, "angle": (30.0, 10.0, 20.0), "direction": 0.5},+ tags=("3d",),+)+add(+ "filters.motion_blur3d[live]",+ g,+ lambda x, a, d: KF.motion_blur3d(x, 3, a, d),+ [VOL, torch.tensor([[30.0, 10.0, 20.0]]), torch.tensor([0.5])],+ tags=("3d",),+ note="angle/direction live tensors",+)+add(+ "filters.motion_blur3d[bilinear,reflect]",+ g,+ KF.motion_blur3d,+ [VOL],+ {"kernel_size": 3, "angle": (30.0, 10.0, 20.0), "direction": 0.5, "mode": "bilinear", "border_type": "reflect"},+ tags=("3d",),+)+add("filters.MotionBlur3D", g, KF.MotionBlur3D(3, (30.0, 10.0, 20.0), 0.5), [VOL], tags=("3d",))+add("filters.MotionBlur", g, KF.MotionBlur(5, 30.0, 0.5), [IMG])+add(+ "filters.motion_blur[live]",+ g,+ lambda x, a, d: KF.motion_blur(x, 5, a, d),+ [IMG, torch.tensor([30.0]), torch.tensor([0.5])],+ note="angle/direction live tensors",+)+add("filters.spatial_gradient3d", g, KF.spatial_gradient3d, [VOL], tags=("3d",))+add("filters.spatial_gradient3d[order2]", g, KF.spatial_gradient3d, [VOL], {"order": 2}, tags=("3d",))+add("filters.SpatialGradient3d", g, KF.SpatialGradient3d(), [VOL3], tags=("3d",))+add("filters.spatial_gradient[order2]", g, KF.spatial_gradient, [IMG], {"order": 2})+add("filters.spatial_gradient[diff]", g, KF.spatial_gradient, [IMG], {"mode": "diff"})+add("filters.spatial_gradient[diff,order2]", g, KF.spatial_gradient, [IMG], {"mode": "diff", "order": 2})+add("filters.spatial_gradient[unnormalized]", g, KF.spatial_gradient, [IMG], {"normalized": False})+add("filters.SpatialGradient", g, KF.SpatialGradient(), [IMG])+add("filters.SpatialGradient[diff,2]", g, KF.SpatialGradient(mode="diff", order=2), [IMG])+add("filters.Sobel", g, KF.Sobel(), [IMG])+add("filters.Sobel[unnormalized]", g, KF.Sobel(normalized=False), [IMG])+add("filters.Laplacian", g, KF.Laplacian(5), [IMG])+add("filters.Laplacian[unnormalized,replicate]", g, KF.Laplacian(3, border_type="replicate", normalized=False), [IMG])+add("filters.BoxBlur", g, KF.BoxBlur((3, 5)), [IMG])+add("filters.BoxBlur[separable]", g, KF.BoxBlur((3, 5), separable=True), [IMG])+add("filters.GaussianBlur2d", g, KF.GaussianBlur2d((5, 5), (1.5, 1.5)), [IMG])+add(+ "filters.GaussianBlur2d[tensor_sigma]",+ g,+ KF.GaussianBlur2d((5, 5), torch.tensor([[1.5, 2.0]])),+ [IMG],+ note="tensor sigma fixed at construction -> constant",+)+add("filters.GaussianBlur2d[nonsep]", g, KF.GaussianBlur2d((5, 3), (1.5, 1.0), separable=False), [IMG])+add("filters.MedianBlur", g, KF.MedianBlur((3, 3)), [IMG])+add("filters.MedianBlur[5x3]", g, KF.MedianBlur((5, 3)), [IMG])+add("filters.median_blur[batch]", g, KF.median_blur, [IMGB], {"kernel_size": (3, 3)}, tags=("batch>1",))+add("filters.UnsharpMask", g, KF.UnsharpMask((5, 5), (1.5, 1.5)), [IMG])+add("filters.BilateralBlur", g, KF.BilateralBlur((5, 5), 0.1, (1.5, 1.5)), [IMG])+add("filters.BilateralBlur[l2]", g, KF.BilateralBlur((5, 5), 0.1, (1.5, 1.5), color_distance_type="l2"), [IMG])+add(+ "filters.bilateral_blur[live_sigma]",+ g,+ lambda x, sc, ss: KF.bilateral_blur(x, (5, 5), sc, ss),+ [IMG, torch.tensor([0.1]), torch.tensor([[1.5, 1.5]])],+ note="sigma_color/sigma_space live",+)+add("filters.JointBilateralBlur", g, KF.JointBilateralBlur((5, 5), 0.1, (1.5, 1.5)), [IMG, IMG2])+add("filters.GuidedBlur", g, KF.GuidedBlur((5, 5), 0.01), [IMG, IMG2], note="known problematic")+add("filters.GuidedBlur[subsample2]", g, KF.GuidedBlur((5, 5), 0.01, subsample=2), [IMG, IMG2])+add(+ "filters.guided_blur[gray_guidance]",+ g,+ KF.guided_blur,+ [GRAY, IMG],+ {"kernel_size": (5, 5), "eps": 0.01},+ note="single-channel guidance",+)+add(+ "filters.guided_blur[eps_tensor]",+ g,+ lambda gd, x, e: KF.guided_blur(gd, x, (5, 5), e),+ [IMG, IMG2, torch.tensor([0.01])],+ note="eps live",+)+add("filters.Canny", g, KF.Canny(), [IMG], note="known fail (data-dependent hysteresis loop)")+add("filters.Canny[no_hysteresis]", g, KF.Canny(hysteresis=False), [IMG])+add("filters.canny[no_hysteresis]", g, KF.canny, [IMG], {"hysteresis": False})+add("filters.canny[gray,no_hysteresis]", g, KF.canny, [GRAY], {"hysteresis": False})+add("filters.BlurPool2D", g, KF.BlurPool2D(3), [IMG])+add("filters.BlurPool2D[stride1]", g, KF.BlurPool2D(3, stride=1), [IMG])+add("filters.MaxBlurPool2D", g, KF.MaxBlurPool2D(3), [IMG])+add(+ "filters.MaxBlurPool2D[ceil]",+ g,+ KF.MaxBlurPool2D(3, stride=2, max_pool_size=3, ceil_mode=True),+ [torch.rand(1, 3, 33, 41)],+)+add("filters.EdgeAwareBlurPool2D", g, KF.EdgeAwareBlurPool2D(3), [IMG])+add("filters.edge_aware_blur_pool2d", g, KF.edge_aware_blur_pool2d, [IMG], {"kernel_size": 3})+add(+ "filters.edge_aware_blur_pool2d[k5]",+ g,+ KF.edge_aware_blur_pool2d,+ [IMGB],+ {"kernel_size": 5, "edge_threshold": 2.0},+ tags=("batch>1",),+)+add("filters.InRange", g, KF.InRange((0.2, 0.2, 0.2), (0.8, 0.8, 0.8)), [IMG])+add("filters.InRange[return_mask]", g, KF.InRange((0.2, 0.2, 0.2), (0.8, 0.8, 0.8), return_mask=True), [IMG])+add(+ "filters.in_range[live_bounds]",+ g,+ KF.in_range,+ [IMG, torch.tensor([[[0.2]], [[0.2]], [[0.2]]]).view(1, 3, 1, 1), torch.tensor([0.8, 0.8, 0.8]).view(1, 3, 1, 1)],+ note="lower/upper live tensors",+)+add(+ "filters.in_range[return_mask]",+ g,+ KF.in_range,+ [IMG],+ {"lower": (0.2, 0.2, 0.2), "upper": (0.8, 0.8, 0.8), "return_mask": True},+)+add("filters.otsu_threshold", g, KF.otsu_threshold, [IMG255], note="returns (thresholded, threshold)")+add("filters.otsu_threshold[differentiable]", g, KF.otsu_threshold, [IMG255], {"slow_and_differentiable": True})+add("filters.otsu_threshold[return_mask]", g, KF.otsu_threshold, [IMG255], {"return_mask": True})+add("filters.OtsuThreshold", g, KF.OtsuThreshold(), [IMG255])+add("filters.StableDiffusionDissolving", g, None, [], skip="weights > 500 MB (Stable Diffusion 1.5 via diffusers)")+add(+ "filters.laplacian[batch,rect]",+ g,+ KF.laplacian,+ [IMGB],+ {"kernel_size": (5, 3)},+ tags=("batch>1",),+ note="rectangular kernel (even sizes are rejected by kornia)",+)+add("filters.sobel[batch]", g, KF.sobel, [IMGB], tags=("batch>1",))+add("filters.box_blur[separable]", g, KF.box_blur, [IMG], {"kernel_size": (3, 5), "separable": True})+add(+ "filters.unsharp_mask[tensor_sigma]",+ g,+ lambda x, s: KF.unsharp_mask(x, (5, 5), s),+ [IMG, torch.tensor([[1.5, 1.5]])],+ note="sigma live",+)++# ------------------------------------------------------------------------------------------------ losses+g = "losses"+LOGITS = torch.randn(2, 4, 16, 20)+LABELS = torch.randint(0, 4, (2, 16, 20))+BIN_LOGITS = torch.randn(2, 1, 16, 20)+BIN_TARGET = (torch.rand(2, 1, 16, 20) > 0.5).float()+add("losses.ssim_loss", g, KL.ssim_loss, [IMG, IMG2], {"window_size": 5})+add(+ "losses.ssim_loss[valid,none]",+ g,+ KL.ssim_loss,+ [IMG, IMG2],+ {"window_size": 5, "padding": "valid", "reduction": "none"},+)+add("losses.SSIMLoss", g, KL.SSIMLoss(5), [IMG, IMG2])+add("losses.ssim3d_loss", g, KL.ssim3d_loss, [VOL, torch.rand(1, 1, 8, 16, 16)], {"window_size": 3}, tags=("3d",))+add("losses.SSIM3DLoss", g, KL.SSIM3DLoss(3), [VOL, torch.rand(1, 1, 8, 16, 16)], tags=("3d",))+add(+ "losses.MS_SSIMLoss",+ g,+ KL.MS_SSIMLoss(),+ [torch.rand(1, 3, 64, 80), torch.rand(1, 3, 64, 80)],+ note="default sigmas up to 8",+)+add("losses.MS_SSIMLoss[small_sigmas]", g, KL.MS_SSIMLoss(sigmas=(0.5, 1.0, 2.0)), [IMG, IMG2])+add("losses.psnr_loss", g, KL.psnr_loss, [IMG, IMG2], {"max_val": 1.0})+add("losses.PSNRLoss", g, KL.PSNRLoss(1.0), [IMG, IMG2])+add("losses.total_variation", g, KL.total_variation, [IMG])+add("losses.total_variation[mean]", g, KL.total_variation, [IMG], {"reduction": "mean"})+add("losses.TotalVariation", g, KL.TotalVariation(), [IMG])+add("losses.inverse_depth_smoothness_loss", g, KL.inverse_depth_smoothness_loss, [GRAY, IMG])+add("losses.InverseDepthSmoothnessLoss", g, KL.InverseDepthSmoothnessLoss(), [GRAY, IMG])+add("losses.dice_loss", g, KL.dice_loss, [LOGITS, LABELS])+add(+ "losses.dice_loss[macro,weight]",+ g,+ KL.dice_loss,+ [LOGITS, LABELS],+ {"average": "macro", "weight": torch.tensor([1.0, 2.0, 0.5, 1.0])},+)+add(+ "losses.dice_loss[ignore_index]",+ g,+ KL.dice_loss,+ [LOGITS, LABELS.clone().masked_fill(LABELS == 3, -100)],+ {"ignore_index": -100},+ note="labels contain -100",+)+add("losses.DiceLoss", g, KL.DiceLoss(), [LOGITS, LABELS])+add("losses.tversky_loss", g, KL.tversky_loss, [LOGITS, LABELS], {"alpha": 0.5, "beta": 0.5})+add("losses.TverskyLoss", g, KL.TverskyLoss(0.3, 0.7), [LOGITS, LABELS])+add("losses.focal_loss", g, KL.focal_loss, [LOGITS, LABELS], {"alpha": 0.5})+add(+ "losses.focal_loss[mean,weight]",+ g,+ KL.focal_loss,+ [LOGITS, LABELS],+ {"alpha": 0.5, "reduction": "mean", "weight": torch.tensor([1.0, 2.0, 0.5, 1.0])},+)+add(+ "losses.focal_loss[ignore_index]",+ g,+ KL.focal_loss,+ [LOGITS, LABELS.clone().masked_fill(LABELS == 3, -100)],+ {"alpha": None, "reduction": "mean"},+)+add("losses.FocalLoss", g, KL.FocalLoss(0.5, reduction="mean"), [LOGITS, LABELS])+add("losses.binary_focal_loss_with_logits", g, KL.binary_focal_loss_with_logits, [BIN_LOGITS, BIN_TARGET])+add(+ "losses.binary_focal_loss_with_logits[pos_weight,mean]",+ g,+ KL.binary_focal_loss_with_logits,+ [BIN_LOGITS, BIN_TARGET],+ {"reduction": "mean", "pos_weight": torch.tensor([2.0]), "weight": torch.tensor([1.5])},+)+add(+ "losses.BinaryFocalLossWithLogits",+ g,+ KL.BinaryFocalLossWithLogits(0.25, reduction="mean"),+ [BIN_LOGITS, BIN_TARGET],+)+add("losses.lovasz_hinge_loss", g, KL.lovasz_hinge_loss, [BIN_LOGITS, BIN_TARGET[:, 0].long()])+add("losses.LovaszHingeLoss", g, KL.LovaszHingeLoss(), [BIN_LOGITS, BIN_TARGET[:, 0].long()])+add("losses.lovasz_softmax_loss", g, KL.lovasz_softmax_loss, [LOGITS, LABELS])+add(+ "losses.lovasz_softmax_loss[weight]",+ g,+ KL.lovasz_softmax_loss,+ [LOGITS, LABELS],+ {"weight": torch.tensor([1.0, 2.0, 0.5, 1.0])},+)+add("losses.LovaszSoftmaxLoss", g, KL.LovaszSoftmaxLoss(), [LOGITS, LABELS])+add("losses.hausdorff_er_loss", g, KL.HausdorffERLoss(), [LOGITS, LABELS[:, None]], note="k=10 erosions")+add("losses.HausdorffERLoss[k3,sum]", g, KL.HausdorffERLoss(k=3, reduction="sum"), [LOGITS, LABELS[:, None]])+add(+ "losses.HausdorffERLoss3D",+ g,+ KL.HausdorffERLoss3D(k=3),+ [torch.randn(1, 3, 8, 16, 16), torch.randint(0, 3, (1, 1, 8, 16, 16))],+ tags=("3d",),+)+for nm, fn, cls in [+ ("charbonnier", KL.charbonnier_loss, KL.CharbonnierLoss),+ ("cauchy", KL.cauchy_loss, KL.CauchyLoss),+ ("geman_mcclure", KL.geman_mcclure_loss, KL.GemanMcclureLoss),+ ("welsch", KL.welsch_loss, KL.WelschLoss),+]:+ add(f"losses.{nm}_loss", g, fn, [IMG, IMG2])+ add(f"losses.{nm}_loss[mean]", g, fn, [IMG, IMG2], {"reduction": "mean"})+ add(f"losses.{cls.__name__}", g, cls(reduction="sum"), [IMG, IMG2])+PROB = torch.softmax(torch.randn(2, 3, 8, 10).flatten(-2), -1).view(2, 3, 8, 10)+PROB2 = torch.softmax(torch.randn(2, 3, 8, 10).flatten(-2), -1).view(2, 3, 8, 10)+add("losses.js_div_loss_2d", g, KL.js_div_loss_2d, [PROB, PROB2])+add("losses.js_div_loss_2d[none]", g, KL.js_div_loss_2d, [PROB, PROB2], {"reduction": "none"})+add("losses.kl_div_loss_2d", g, KL.kl_div_loss_2d, [PROB, PROB2])+add("losses.kl_div_loss_2d[sum]", g, KL.kl_div_loss_2d, [PROB, PROB2], {"reduction": "sum"})+SIG_A = torch.rand(2, 256)+SIG_B = (SIG_A + 0.1 * torch.randn(2, 256)).clamp(0, 1)+add("losses.mutual_information_loss", g, KL.mutual_information_loss, [SIG_A, SIG_B])+add(+ "losses.mutual_information_loss[rect]",+ g,+ KL.mutual_information_loss,+ [SIG_A, SIG_B],+ {"kernel_function": KL.MIKernel.rectangular},+)+add(+ "losses.mutual_information_loss[tgauss,bins16]",+ g,+ KL.mutual_information_loss,+ [SIG_A, SIG_B],+ {"kernel_function": KL.MIKernel.truncated_gaussian, "num_bins": 16},+)+add(+ "losses.mutual_information_loss[mask]",+ g,+ KL.mutual_information_loss,+ [SIG_A, SIG_B, torch.rand(256) > 0.2, torch.rand(256) > 0.2],+ note="bool masks live (common mask, shape N)",+)+add("losses.mutual_information_loss_2d", g, KL.mutual_information_loss_2d, [GRAY, GRAY * 0.9 + 0.05])+add("losses.mutual_information_loss_3d", g, KL.mutual_information_loss_3d, [VOL, VOL * 0.9 + 0.05], tags=("3d",))+add("losses.normalized_mutual_information_loss", g, KL.normalized_mutual_information_loss, [SIG_A, SIG_B])+add(+ "losses.normalized_mutual_information_loss_2d",+ g,+ KL.normalized_mutual_information_loss_2d,+ [GRAY, GRAY * 0.9 + 0.05],+)+add(+ "losses.normalized_mutual_information_loss_3d",+ g,+ KL.normalized_mutual_information_loss_3d,+ [VOL, VOL * 0.9 + 0.05],+ tags=("3d",),+)+add("losses.MILossFromRef", g, KL.MILossFromRef(SIG_A), [SIG_B], note="reference signal fixed at construction")+add("losses.MILossFromRef[mask]", g, KL.MILossFromRef(SIG_A, mask=torch.rand(256) > 0.2), [SIG_B])+add("losses.MILossFromRef2D", g, KL.MILossFromRef2D(GRAY), [GRAY * 0.9 + 0.05])+add("losses.MILossFromRef3D", g, KL.MILossFromRef3D(VOL), [VOL * 0.9 + 0.05], tags=("3d",))+add("losses.NMILossFromRef", g, KL.NMILossFromRef(SIG_A), [SIG_B])+add("losses.NMILossFromRef2D", g, KL.NMILossFromRef2D(GRAY), [GRAY * 0.9 + 0.05])+add("losses.NMILossFromRef3D", g, KL.NMILossFromRef3D(VOL), [VOL * 0.9 + 0.05], tags=("3d",))+add("losses.MIKernel", g, None, [], skip="Enum of kernel functions")+add("losses.one_hot", g, lambda l: KL.one_hot(l, 4, l.device, torch.float32), [LABELS], note="num_classes baked")++# ------------------------------------------------------------------------------------------------ metrics+g = "metrics"+CLS_LOGITS = torch.randn(8, 5)+CLS_TARGET = torch.randint(0, 5, (8,))+add("metrics.accuracy", g, KM.accuracy, [CLS_LOGITS, CLS_TARGET], note="returns list of 0-d tensors")+add("metrics.accuracy[top1,top3]", g, KM.accuracy, [CLS_LOGITS, CLS_TARGET], {"topk": (1, 3)})+SEG_PRED = torch.randint(0, 4, (2, 16, 20))+add("metrics.confusion_matrix", g, KM.confusion_matrix, [SEG_PRED, LABELS], {"num_classes": 4})+add(+ "metrics.confusion_matrix[normalized]",+ g,+ KM.confusion_matrix,+ [SEG_PRED, LABELS],+ {"num_classes": 4, "normalized": True},+)+add("metrics.mean_iou", g, KM.mean_iou, [SEG_PRED, LABELS], {"num_classes": 4})+BOXES1 = torch.tensor([[40.0, 40, 60, 60], [30, 40, 50, 60], [10, 10, 20, 20]])+BOXES2 = torch.tensor([[40.0, 50, 60, 70], [30, 40, 40, 50]])+add("metrics.mean_iou_bbox", g, KM.mean_iou_bbox, [BOXES1, BOXES2])+add("metrics.mean_iou_bbox[xywh]", g, KM.mean_iou_bbox, [BOXES1, BOXES2], {"box_format": "xywh"})+add("metrics.mean_iou_bbox[cxcywh]", g, KM.mean_iou_bbox, [BOXES1, BOXES2], {"box_format": "cxcywh"})+add(+ "metrics.mean_average_precision",+ g,+ lambda pb, pl, ps, gb, gl: KM.mean_average_precision([pb], [pl], [ps], [gb], [gl], n_classes=3)[0],+ [BOXES1, torch.tensor([0, 1, 2]), torch.tensor([0.9, 0.8, 0.7]), BOXES2, torch.tensor([0, 1])],+ note="Python-heavy (per-class loops, dict return); lists wrapped",+)+add("metrics.psnr", g, KM.psnr, [IMG, IMG2], {"max_val": 1.0})+add("metrics.ssim", g, KM.ssim, [IMG, IMG2], {"window_size": 5})+add("metrics.ssim[valid]", g, KM.ssim, [IMG, IMG2], {"window_size": 5, "padding": "valid"})+add("metrics.SSIM", g, KM.SSIM(5), [IMG, IMG2])+add("metrics.ssim3d", g, KM.ssim3d, [VOL, torch.rand(1, 1, 8, 16, 16)], {"window_size": 3}, tags=("3d",))+add("metrics.SSIM3D", g, KM.SSIM3D(3), [VOL, torch.rand(1, 1, 8, 16, 16)], tags=("3d",))+FLOW = torch.randn(1, 16, 20, 2)+FLOW2 = FLOW + 0.1 * torch.randn(1, 16, 20, 2)+add("metrics.aepe", g, KM.aepe, [FLOW, FLOW2])+add("metrics.aepe[none]", g, KM.aepe, [FLOW, FLOW2], {"reduction": "none"})+add("metrics.average_endpoint_error", g, KM.average_endpoint_error, [FLOW, FLOW2], {"reduction": "sum"})+add("metrics.AEPE", g, KM.AEPE(), [FLOW, FLOW2])+DISP = torch.rand(1, 16, 20) * 10+DISP2 = DISP + torch.randn(1, 16, 20) * 2+VALID = torch.rand(1, 16, 20) > 0.2+add("metrics.mean_absolute_disparity_error", g, KM.mean_absolute_disparity_error, [DISP, DISP2])+add(+ "metrics.mean_absolute_disparity_error[mask]",+ g,+ KM.mean_absolute_disparity_error,+ [DISP, DISP2, VALID],+ note="bool mask live",+)+add("metrics.root_mean_squared_disparity_error", g, KM.root_mean_squared_disparity_error, [DISP, DISP2])+add(+ "metrics.root_mean_squared_disparity_error[mask,none]",+ g,+ KM.root_mean_squared_disparity_error,+ [DISP, DISP2, VALID],+ {"reduction": "none"},+)+add("metrics.mean_bad_pixel_error", g, KM.mean_bad_pixel_error, [DISP, DISP2], {"threshold": 1.5})+add(+ "metrics.mean_bad_pixel_error[mask]",+ g,+ lambda a, b, m: KM.mean_bad_pixel_error(a, b, 1.5, m),+ [DISP, DISP2, VALID],+ note="bool mask live",+)+R1 = K.geometry.axis_angle_to_rotation_matrix(torch.tensor([[0.1, 0.2, 0.3], [0.0, 0.5, 0.1]]))+R2 = K.geometry.axis_angle_to_rotation_matrix(torch.tensor([[0.15, 0.2, 0.25], [0.1, 0.4, 0.1]]))+add("metrics.angle_error_mat", g, KM.angle_error_mat, [R1[0], R2[0]])+add("metrics.angle_error_mat[batch]", g, KM.angle_error_mat, [R1, R2], tags=("batch>1",))+add("metrics.angle_error_vec", g, KM.angle_error_vec, [torch.tensor([1.0, 0.2, 0.1]), torch.tensor([0.9, 0.3, 0.0])])+add("metrics.angle_error_vec[batch]", g, KM.angle_error_vec, [torch.randn(4, 3), torch.randn(4, 3)], tags=("batch>1",))+add("metrics.translation_ate", g, KM.translation_ate, [torch.randn(3), torch.randn(3)])+add("metrics.translation_ate[batch]", g, KM.translation_ate, [torch.randn(4, 3), torch.randn(4, 3)], tags=("batch>1",))+P1 = torch.eye(4).repeat(2, 1, 1)+P1[:, :3, :3] = R1+P1[:, :3, 3] = torch.tensor([[1.0, 0.0, 0.5], [0.0, 1.0, 0.2]])+P2 = torch.eye(4).repeat(2, 1, 1)+P2[:, :3, :3] = R2+P2[:, :3, 3] = torch.tensor([[1.1, 0.1, 0.4], [0.2, 0.9, 0.2]])+add("metrics.pose_errors", g, KM.pose_errors, [P1[0], P2[0]], note="returns dict of tensors")+add("metrics.pose_errors[batch,no_fold]", g, KM.pose_errors, [P1, P2], {"fold_translation": False}, tags=("batch>1",))+add(+ "metrics.auc_from_errors",+ g,+ KM.auc_from_errors,+ [torch.rand(20) * 10],+ note="returns dict[float,float] of Python floats",+)+add("metrics.AverageMeter", g, None, [], skip="running-statistics helper, not a tensor op")++# ------------------------------------------------------------------------------------------------ utils+g = "utils"+add(+ "utils.create_meshgrid",+ g,+ lambda d: K.geometry.create_meshgrid(16, 24, device=d.device) + d * 0,+ [torch.zeros(1)],+ note="H,W baked; graph is fully constant (kornia.geometry.create_meshgrid)",+)+add(+ "utils.create_meshgrid[unnormalized]",+ g,+ lambda d: K.geometry.create_meshgrid(16, 24, normalized_coordinates=False, device=d.device) + d * 0,+ [torch.zeros(1)],+ note="constant graph",+)+add(+ "utils.create_meshgrid3d",+ g,+ lambda d: K.geometry.create_meshgrid3d(4, 8, 12, device=d.device) + d * 0,+ [torch.zeros(1)],+ note="constant graph",+ tags=("3d",),+)+add(+ "utils.create_meshgrid3d[unnormalized]",+ g,+ lambda d: K.geometry.create_meshgrid3d(4, 8, 12, normalized_coordinates=False, device=d.device) + d * 0,+ [torch.zeros(1)],+ note="constant graph",+ tags=("3d",),+)+add(+ "utils.eye_like",+ g,+ lambda t: K.core.ops.eye_like(3, t),+ [torch.rand(4, 3, 3)],+ note="n baked; batch from input (kornia.core.ops)",+)+add("utils.eye_like[shared]", g, lambda t: K.core.ops.eye_like(3, t, shared_memory=True), [torch.rand(4, 3, 3)])+add("utils.vec_like", g, lambda t: K.core.ops.vec_like(3, t), [torch.rand(4, 3, 3)], note="kornia.core.ops")+add(+ "utils.one_hot",+ g,+ None,+ [],+ skip="deprecated alias of kornia.losses.one_hot (kornia.utils is a deprecation shim, not an attribute of kornia)",+)+add(+ "utils.draw_line",+ g,+ lambda img, p1, p2, c: K.image.draw_line(img.clone(), p1, p2, c),+ [torch.zeros(3, 32, 40), torch.tensor([2.0, 3.0]), torch.tensor([35.0, 28.0]), torch.tensor([1.0, 0.5, 0.2])],+ note="kornia.image.draw_line; single image CxHxW",+)+add(+ "utils.draw_rectangle",+ g,+ lambda img, r: K.image.draw_rectangle(img.clone(), r),+ [torch.zeros(2, 3, 32, 40), torch.tensor([[[2.0, 3.0, 20.0, 25.0]], [[5.0, 5.0, 30.0, 30.0]]])],+ note="kornia.image.draw_rectangle, default color",+)+add(+ "utils.draw_rectangle[fill,color]",+ g,+ lambda img, r, c: K.image.draw_rectangle(img.clone(), r, c, fill=True),+ [+ torch.zeros(1, 3, 32, 40),+ torch.tensor([[[2.0, 3.0, 20.0, 25.0], [10.0, 10.0, 30.0, 20.0]]]),+ torch.tensor([[[1.0, 0.0, 0.0], [0.0, 1.0, 0.0]]]),+ ],+)+add(+ "utils.draw_point2d",+ g,+ lambda img, p, c: K.image.draw_point2d(img.clone(), p, c),+ [torch.zeros(3, 32, 40), torch.tensor([[2, 3], [10, 20], [30, 5]]), torch.tensor([1.0, 0.5, 0.2])],+ note="kornia.image.draw_point2d; points int64 (x,y)",+)+add(+ "utils.draw_convex_polygon",+ g,+ lambda img, poly, c: K.image.draw_convex_polygon(img.clone(), poly, c),+ [+ torch.zeros(1, 3, 32, 40),+ torch.tensor([[[4.0, 4.0], [30.0, 6.0], [28.0, 25.0], [6.0, 20.0]]]),+ torch.tensor([[0.5, 0.2, 0.9]]),+ ],+ note="kornia.image.draw_convex_polygon; polygons as BxNx2 tensor",+)+add(+ "utils.safe_inverse_with_mask",+ g,+ K.core.utils.safe_inverse_with_mask,+ [torch.eye(3)[None].repeat(3, 1, 1) + 0.1 * torch.rand(3, 3, 3)],+ note="returns (inv, mask)",+)+add(+ "utils.safe_solve_with_mask",+ g,+ K.core.utils.safe_solve_with_mask,+ [torch.rand(3, 3, 1), torch.eye(3)[None].repeat(3, 1, 1) + 0.1 * torch.rand(3, 3, 3)],+ note="returns (X, LU, mask)",+)+add(+ "utils.batched_forward",+ g,+ lambda x: K.core.utils.batched_forward(torch.nn.Identity(), x, torch.device("cpu"), batch_size=4),+ [torch.rand(10, 3)],+ note="micro-batch loop over Identity; batch_size baked",+)+add(+ "utils.torch_meshgrid",+ g,+ lambda a, b: torch.stack(_torch_meshgrid([a, b], indexing="ij")),+ [torch.arange(4.0), torch.arange(6.0)],+ note="thin wrapper over torch.meshgrid (kornia.utils shim)",+)+add("utils.ImageToTensor", g, None, [], skip="numpy input")+add("utils.image_to_tensor", g, None, [], skip="numpy input")+add("utils.image_list_to_tensor", g, None, [], skip="list of numpy inputs")+add("utils.tensor_to_image", g, None, [], skip="numpy output")+add("utils.image_to_string", g, None, [], skip="returns str")+add("utils.print_image", g, None, [], skip="prints; no tensor output")+add("utils.get_cuda_device_if_available", g, None, [], skip="returns torch.device")+add("utils.get_mps_device_if_available", g, None, [], skip="returns torch.device")+add("utils.get_cuda_or_mps_device_if_available", g, None, [], skip="returns torch.device")+add("utils.is_autocast_enabled", g, None, [], skip="returns Python bool")+add("utils.is_mps_tensor_safe", g, None, [], skip="returns Python bool")+add("utils.xla_is_available", g, None, [], skip="returns Python bool")+add("utils.dataclass_to_dict", g, None, [], skip="Python container helper")+add("utils.dict_to_dataclass", g, None, [], skip="Python container helper")+add("utils.deprecated", g, None, [], skip="decorator")+add("utils.map_location_to_cpu", g, None, [], skip="torch.load helper")+add("utils.get_sample_images", g, None, [], skip="downloads sample images; not a tensor op")+add("utils.load_pointcloud_ply", g, None, [], skip="file I/O")+add("utils.save_pointcloud_ply", g, None, [], skip="file I/O")++# ------------------------------------------------------------------------------------------------ morphology+g = "morphology"+add(+ "morphology.[no module classes]",+ g,+ None,+ [],+ skip="kornia.morphology exposes only the 7 functions already covered in the first pass",+)+add(+ "morphology.dilation[3d_kernel_variants]",+ g,+ K.morphology.dilation,+ [IMG, torch.ones(3, 5)],+ {"engine": "convolution"},+ note="engine=convolution variant (first pass used unfold)",+)+add("morphology.erosion[convolution]", g, K.morphology.erosion, [IMG, torch.ones(3, 5)], {"engine": "convolution"})+add(+ "morphology.dilation[structuring_element]",+ g,+ K.morphology.dilation,+ [IMG, torch.ones(3, 3), torch.zeros(3, 3)],+ note="structuring_element live tensor (non-flat)",+)+add(+ "morphology.dilation[border_constant]",+ g,+ K.morphology.dilation,+ [IMG, torch.ones(3, 3)],+ {"border_type": "constant", "border_value": 0.5},+)+add("morphology.gradient[batch]", g, K.morphology.gradient, [IMGB, torch.ones(3, 3)], tags=("batch>1",))++if __name__ == "__main__":+ run_cases(CASES, sys.argv[1], only=sys.argv[2:] or None)diff --git a/docs/export_support/cases_models.py b/docs/export_support/cases_models.pynew file mode 100644index 000000000..eb2762e68--- /dev/null+++ b/docs/export_support/cases_models.py@@ -0,0 +1,1547 @@+# LICENSE HEADER MANAGED BY add-license-header+#+# Copyright 2018 Kornia Team+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+#++"""ONNX export survey β area `models` (kornia.models, kornia.contrib, kornia.tracking, kornia.sensors, kornia.image)."""++from __future__ import annotations++import sys+import traceback++import torch+from harness import case, run_cases++import kornia as K++torch.manual_seed(0)+torch.set_num_threads(4)++# ----------------------------------------------------------------------------- helpers+++def ev(m):+ """Return module in eval mode (lambda targets are not put in eval() by the harness)."""+ return m.eval()+++def build(ctor):+ """Build lazily-failing objects: if the constructor raises, return a callable that re-raises (-> eager-fail)."""+ try:+ return ctor(), None+ except Exception as e:+ tb = traceback.format_exc()+ return None, (e, tb)+++def raiser(exc):+ def _f(*a, **k):+ raise exc[0]++ return _f+++def reuse(obj, err):+ """Constructor returning an already-built object, re-raising its build error if any."""++ def _c():+ if err is not None:+ raise err[0]+ return obj++ return _c+++def mcase(name, group, ctor, call, inputs, kwargs=None, **kw):+ """Case whose target is `call(obj)` where obj = ctor(); constructor errors surface as eager-fail."""+ obj, err = build(ctor)+ if err is not None:+ kw["note"] = (kw.get("note", "") + f" | CONSTRUCTOR FAILED: {type(err[0]).__name__}: {err[0]}").strip(" |")+ return case(name, group, raiser(err), inputs, kwargs, **kw)+ return case(name, group, call(obj), inputs, kwargs, **kw)+++IMG = torch.rand(1, 3, 64, 96)+IMG2 = torch.rand(2, 3, 48, 64)+IMG32 = torch.rand(1, 3, 224, 224)++CASES: list[dict] = []+A = CASES.append++# ============================================================================= kornia.models.rt_detr+from kornia.models.rt_detr import RTDETR, DETRPostProcessor, RTDETRConfig, RTDETRModelType # noqa: E402++rtdetr_pre, _e = build(lambda: ev(RTDETR.from_pretrained("rtdetr_r18vd")))+A(+ mcase(+ "models.rt_detr.RTDETR[r18vd,pretrained]",+ "models.rt_detr",+ reuse(rtdetr_pre, _e),+ lambda m: m,+ [torch.rand(1, 3, 256, 320)],+ note="weights rtdetr_r18vd (HF kornia/rt_detr); outputs (logits (1,300,80), boxes (1,300,4)); 256x320 input",+ tags=("model", "pretrained"),+ )+)+A(+ mcase(+ "models.rt_detr.RTDETR[r18vd,random,160x192]",+ "models.rt_detr",+ lambda: ev(RTDETR.from_name("rtdetr_r18vd", num_classes=80)),+ lambda m: m,+ [torch.rand(1, 3, 160, 192)],+ note="random init via RTDETR.from_name; 160x192 input. NOTE: 64x96 fails eagerly ('selected "+ "index k out of range'): "+ "the decoder topk selects 300 queries so the input must yield >=300 encoder tokens (>= ~128x160)",+ tags=("model",),+ )+)+A(+ mcase(+ "models.rt_detr.RTDETR.from_config[r18vd,num_classes=3]",+ "models.rt_detr",+ lambda: ev(RTDETR.from_config(RTDETRConfig(RTDETRModelType.resnet18d, 3))),+ lambda m: m,+ [torch.rand(1, 3, 160, 192)],+ note="RTDETRConfig(RTDETRModelType.resnet18d, num_classes=3); random init (str model_type "+ "'rtdetr_r18vd' is rejected: AttributeError)",+ tags=("model",),+ )+)+A(case("models.rt_detr.RTDETRConfig", "models.rt_detr", None, [], skip="config dataclass, not a callable graph"))+A(case("models.rt_detr.RTDETRModelType", "models.rt_detr", None, [], skip="enum"))+_logits = torch.randn(1, 300, 80)+_boxes = torch.rand(1, 300, 4) * 0.5 + 0.25+_sizes = torch.tensor([[64.0, 96.0]])+A(+ case(+ "models.rt_detr.DETRPostProcessor[confidence_filtering=False]",+ "models.rt_detr",+ DETRPostProcessor(num_classes=80, num_top_queries=300, confidence_filtering=False),+ [_logits, _boxes, _sizes],+ note="num_top_queries=300 baked; returns (1,300,6) tensor; uses topk + gather + mod",+ )+)+A(+ case(+ "models.rt_detr.DETRPostProcessor[threshold=0.3,filter_as_zero]",+ "models.rt_detr",+ DETRPostProcessor(confidence_threshold=0.3, num_classes=80, num_top_queries=300, filter_as_zero=True),+ [_logits, _boxes, _sizes],+ note="threshold baked as buffer; filtered rows zeroed -> fixed shape",+ )+)+A(+ case(+ "models.rt_detr.DETRPostProcessor[threshold=0.3,list output]",+ "models.rt_detr",+ DETRPostProcessor(confidence_threshold=0.3, num_classes=80, num_top_queries=300),+ [_logits, _boxes, _sizes],+ note="default: BoxFiltering returns Python list of (Di,6) tensors, data-dependent shapes",+ )+)++# ============================================================================= kornia.models.sam+from kornia.models.sam import Sam, SamConfig # noqa: E402+from kornia.models.structures import SegmentationResults # noqa: E402++A(+ case(+ "models.sam.Sam.forward",+ "models.sam",+ None,+ [],+ skip="forward(images, batched_prompts: list[dict], multimask_output: bool) -> list[SegmentationResults]; "+ "list/dict/bool inputs are not exportable β sub-modules exported as separate cases",+ )+)+A(case("models.sam.SamConfig", "models.sam", None, [], skip="config dataclass"))+A(case("models.sam.SamModelType", "models.sam", None, [], skip="enum"))+A(case("models.structures.Prompts", "models.sam", None, [], skip="plain dataclass holding tensors, no computation"))+A(+ case(+ "models.structures.SegmentationResults",+ "models.sam",+ SegmentationResults,+ [torch.randn(1, 3, 64, 96), torch.rand(1, 3)],+ note="dataclass container; `binary_masks` property = logits > 0",+ )+)+A(+ case(+ "models.structures.SegmentationResults.binary_masks",+ "models.sam",+ lambda lg, sc: SegmentationResults(lg, sc).binary_masks,+ [torch.randn(1, 3, 64, 96), torch.rand(1, 3)],+ note="mask_threshold=0.0 baked",+ )+)++sam_mobile, _e_sm = build(lambda: ev(Sam.from_config(SamConfig("mobile_sam", pretrained=True))))+sam_b, _e_sb = build(lambda: ev(Sam.from_config(SamConfig("vit_b", pretrained=False))))+A(+ case(+ "models.sam.Sam.image_encoder[vit_b,pretrained]",+ "models.sam",+ None,+ [],+ skip="weights 375 MB but ViT-B on a mandatory 1024x1024 input: random-init vit_b encoder exported instead "+ "(same graph); mobile_sam covers the pretrained path",+ )+)+A(case("models.sam.Sam.image_encoder[vit_l]", "models.sam", None, [], skip="weights > 500 MB (1.25 GB)"))+A(case("models.sam.Sam.image_encoder[vit_h]", "models.sam", None, [], skip="weights > 500 MB (2.56 GB)"))+++def _sam_sub(model, err, attr, name, inputs, kwargs=None, **kw):+ if err is not None:+ kw["note"] = (kw.get("note", "") + f" | CONSTRUCTOR FAILED: {err[0]}").strip(" |")+ return case(name, "models.sam", raiser(err), inputs, kwargs, **kw)+ return case(name, "models.sam", getattr(model, attr), inputs, kwargs, **kw)+++_img_emb = torch.randn(1, 256, 64, 64)+_sparse = torch.randn(1, 3, 256)+_dense = torch.randn(1, 256, 64, 64)+for tagname, mdl, err in (("mobile_sam", sam_mobile, _e_sm), ("vit_b,random", sam_b, _e_sb)):+ pe = None if err else mdl.prompt_encoder+ A(+ case(+ f"models.sam.Sam.prompt_encoder[points,{tagname}]",+ "models.sam",+ (raiser(err) if err else (lambda c, l, _pe=pe: _pe(points=(c, l), boxes=None, masks=None))),+ [torch.tensor([[[300.0, 400.0], [512.0, 512.0]]]), torch.tensor([[1, 0]])],+ note="points=(coords (1,2,2), labels (1,2) int64); pads with a -1 label point; "+ "boolean-mask indexed assignment "+ "`point_embedding[labels == -1] = 0.0`",+ tags=("model",) + (("pretrained",) if "mobile" in tagname else ()),+ )+ )+ A(+ case(+ f"models.sam.Sam.prompt_encoder[boxes,{tagname}]",+ "models.sam",+ (raiser(err) if err else (lambda b, _pe=pe: _pe(points=None, boxes=b, masks=None))),+ [torch.tensor([[100.0, 120.0, 600.0, 700.0]])],+ note="boxes (1,4) in 1024x1024 pixel coords",+ tags=("model",),+ )+ )+ A(+ case(+ f"models.sam.Sam.prompt_encoder[masks,{tagname}]",+ "models.sam",+ (raiser(err) if err else (lambda m, _pe=pe: _pe(points=None, boxes=None, masks=m))),+ [torch.randn(1, 1, 256, 256)],+ note="mask prompt (1,1,256,256) -> dense (1,256,64,64) via conv downscale",+ tags=("model",),+ )+ )+ A(+ case(+ f"models.sam.Sam.prompt_encoder.get_dense_pe[{tagname}]",+ "models.sam",+ (raiser(err) if err else (lambda d, _pe=pe: _pe.get_dense_pe())),+ [torch.zeros(1)],+ note="no tensor input: graph is a constant positional encoding (1,256,64,64)",+ tags=("model",),+ )+ )+ A(+ _sam_sub(+ mdl,+ err,+ "mask_decoder",+ f"models.sam.Sam.mask_decoder[multimask,{tagname}]",+ [_img_emb, _img_emb.clone(), _sparse, _dense],+ {"multimask_output": True},+ note="multimask_output=True baked; inputs image_embeddings/image_pe (1,256,64,64), sparse (1,3,256), "+ "dense (1,256,64,64); TwoWayTransformer",+ tags=("model",),+ )+ )+ A(+ _sam_sub(+ mdl,+ err,+ "mask_decoder",+ f"models.sam.Sam.mask_decoder[single,{tagname}]",+ [_img_emb, _img_emb.clone(), _sparse, _dense],+ {"multimask_output": False},+ note="multimask_output=False baked",+ tags=("model",),+ )+ )++# ============================================================================= kornia.models.sam3+from kornia.models.sam3 import ImageEncoderHiera # noqa: E402++A(+ mcase(+ "models.sam3.ImageEncoderHiera[tiny,random]",+ "models.sam3",+ lambda: ev(ImageEncoderHiera(img_size=64, patch_size=16, embed_dim=64, depth=2, num_heads=2)),+ lambda m: m,+ [torch.rand(1, 3, 64, 64)],+ note="random init, img_size=64 (square, pos_embed fixed to img_size)",+ tags=("model",),+ )+)+A(+ case(+ "models.sam3.ImageEncoderHiera[default 1024]",+ "models.sam3",+ None,+ [],+ skip="default config = ViT-B at 1024x1024 random init; no weights loader exists in kornia; "+ "tiny variant exported",+ )+)++# ============================================================================= kornia.models.yunet+from kornia.models.yunet import YuNet # noqa: E402+from kornia.models.yunet.processors import PriorBox, decode # noqa: E402++A(+ mcase(+ "models.yunet.YuNet[test,pretrained]",+ "models.yunet",+ lambda: ev(YuNet("test", pretrained=True)),+ lambda m: m,+ [IMG],+ note="weights yunet_final.pth; dict outputs loc/conf/iou; H,W must be multiples of 32",+ tags=("model", "pretrained"),+ )+)+A(+ mcase(+ "models.yunet.YuNet[test,batch2]",+ "models.yunet",+ lambda: ev(YuNet("test", pretrained=True)),+ lambda m: m,+ [torch.rand(2, 3, 64, 128)],+ tags=("model", "pretrained", "batch>1"),+ )+)+A(+ case(+ "models.yunet.processors.PriorBox",+ "models.yunet",+ lambda d: PriorBox([[10, 16, 24], [32, 48], [64, 96], [128, 192, 256]], [8, 16, 32, 64], False, (64, 96))(),+ [torch.zeros(1)],+ note="no tensor input: fully constant graph (priors for 64x96)",+ )+)+_pri = PriorBox([[10, 16, 24], [32, 48], [64, 96], [128, 192, 256]], [8, 16, 32, 64], False, (64, 96))()+A(+ case(+ "models.yunet.processors.decode",+ "models.yunet",+ decode,+ [torch.randn(_pri.shape[0], 14) * 0.1, _pri],+ {"variances": [0.1, 0.2]},+ note="variances baked",+ )+)++# ============================================================================= kornia.models.dexined+from kornia.models.dexined import DexiNed # noqa: E402++dexi, _e_dx = build(lambda: ev(DexiNed(pretrained=True)))+A(+ mcase(+ "models.dexined.DexiNed[pretrained]",+ "models.dexined",+ reuse(dexi, _e_dx),+ lambda m: m,+ [IMG],+ note="weights DexiNed_BIPED_10.pth; output (1,1,H,W)",+ tags=("model", "pretrained"),+ )+)+A(+ mcase(+ "models.dexined.DexiNed.get_features",+ "models.dexined",+ reuse(dexi, _e_dx),+ lambda m: m,+ [IMG],+ method="get_features",+ note="returns list of 6 side outputs",+ tags=("model", "pretrained"),+ )+)+A(+ mcase(+ "models.dexined.DexiNed[batch2,48x64]",+ "models.dexined",+ reuse(dexi, _e_dx),+ lambda m: m,+ [IMG2],+ tags=("model", "pretrained", "batch>1"),+ )+)++# ============================================================================= depth / segmentation / base+A(+ case(+ "models.depth_estimation.DepthEstimation",+ "models.depth_estimation",+ None,+ [],+ skip="HFONNXComunnityModel: loads a pre-built ONNX graph from HF onnx-community and runs it with onnxruntime; "+ "not a torch module",+ )+)+A(+ case(+ "models.depth_estimation.DepthAnythingONNXBuilder",+ "models.depth_estimation",+ None,+ [],+ skip="builder returns the onnx-community ONNX model wrapped in ONNXSequential; nothing to export",+ )+)+from kornia.models.segmentation import SegmentationModelsBuilder, SemanticSegmentation # noqa: E402++A(+ case(+ "models.segmentation.SegmentationModelsBuilder.build",+ "models.segmentation",+ lambda d: SegmentationModelsBuilder.build("Unet", "resnet34", encoder_weights=None),+ [IMG],+ note="segmentation_models_pytorch not installed -> ImportError expected; even with it installed the builder "+ "instantiates abstract SemanticSegmentation (no from_config, no __init__) -> TypeError (kornia bug)",+ )+)+A(+ case(+ "models.segmentation.SemanticSegmentation",+ "models.segmentation",+ lambda d: SemanticSegmentation(+ model=torch.nn.Identity(), pre_processor=torch.nn.Identity(), post_processor=torch.nn.Identity(), name="x"+ ),+ [IMG],+ note="KORNIA BUG: abstract class (ModelBase.from_config not implemented) -> cannot be instantiated",+ )+)+A(case("models.base.ModelBase", "models.base", None, [], skip="abstract base class (from_config abstract)"))+A(+ case(+ "models.base.ModelBase.save/load/resize",+ "models.base",+ None,+ [],+ skip="file-IO / PIL helpers on ModelBase, not tensor graphs",+ )+)+A(+ case(+ "models._hf_models.HFONNXComunnityModel",+ "models.base",+ None,+ [],+ skip="ORT wrapper around downloaded onnx-community graphs; not a torch module",+ )+)++# ============================================================================= efficient_vit+from kornia.models.efficient_vit import EfficientViT, EfficientViTConfig # noqa: E402+from kornia.models.efficient_vit.backbone import ( # noqa: E402+ efficientvit_backbone_b0,+ efficientvit_backbone_b1,+ efficientvit_backbone_l0,+)++A(+ mcase(+ "models.efficient_vit.EfficientViT[b1-r224,pretrained]",+ "models.efficient_vit",+ lambda: ev(EfficientViT.from_config(EfficientViTConfig.from_pretrained("b1", 224))),+ lambda m: m,+ [IMG],+ note="weights HF kornia/efficientvit_imagenet_b1_r224 (b1-r224.pt); dict of stage features; 64x96 input",+ tags=("model", "pretrained"),+ )+)+A(+ mcase(+ "models.efficient_vit.backbone.efficientvit_backbone_b0",+ "models.efficient_vit",+ lambda: ev(efficientvit_backbone_b0()),+ lambda m: m,+ [IMG],+ note="random init; dict output",+ tags=("model",),+ )+)+A(+ mcase(+ "models.efficient_vit.backbone.efficientvit_backbone_b1",+ "models.efficient_vit",+ lambda: ev(efficientvit_backbone_b1()),+ lambda m: m,+ [IMG],+ note="random init",+ tags=("model",),+ )+)+A(+ mcase(+ "models.efficient_vit.backbone.efficientvit_backbone_l0",+ "models.efficient_vit",+ lambda: ev(efficientvit_backbone_l0()),+ lambda m: m,+ [IMG],+ note="random init (large family)",+ tags=("model",),+ )+)+for _n in ("b2", "b3", "l1", "l2", "l3"):+ A(+ case(+ f"models.efficient_vit.backbone.efficientvit_backbone_{_n}",+ "models.efficient_vit",+ None,+ [],+ skip=f"same architecture family as b0/b1/l0 with more channels/blocks; {_n} not exported separately",+ )+ )+A(+ case(+ "models.efficient_vit.EfficientViTBackbone",+ "models.efficient_vit",+ None,+ [],+ skip="class instantiated by efficientvit_backbone_b* factories (covered)",+ )+)+A(+ case(+ "models.efficient_vit.EfficientViTLargeBackbone",+ "models.efficient_vit",+ None,+ [],+ skip="class instantiated by efficientvit_backbone_l* factories (covered)",+ )+)++# ============================================================================= tiny_vit / vit / vit_mobile+from kornia.models.tiny_vit import TinyViT # noqa: E402+from kornia.models.vit import VisionTransformer # noqa: E402+from kornia.models.vit_mobile import MobileViT # noqa: E402++A(+ mcase(+ "models.tiny_vit.TinyViT[5m,in1k]",+ "models.tiny_vit",+ lambda: ev(TinyViT.from_config("5m", pretrained="in1k")),+ lambda m: m,+ [IMG32],+ note="weights tiny_vit_5m_224 in1k (HF kornia/tiny_vit); img_size=224 baked (window attention)",+ tags=("model", "pretrained"),+ )+)+A(+ mcase(+ "models.tiny_vit.TinyViT[5m,mobile_sam,random,img_size=64]",+ "models.tiny_vit",+ lambda: ev(TinyViT.from_config("5m", img_size=64, mobile_sam=True)),+ lambda m: m,+ [torch.rand(1, 3, 64, 64)],+ note="mobile_sam=True head: unflatten + neck -> (1,256,4,4)",+ tags=("model",),+ )+)+A(+ case(+ "models.tiny_vit.TinyViT[non-square input]",+ "models.tiny_vit",+ None,+ [],+ skip="eager RuntimeError (view '[1,8,8,64]' invalid) β TinyViT hard-codes H=W=img_size in its window attention",+ )+)+A(case("contrib.TinyViT", "contrib", None, [], skip="alias of kornia.models.tiny_vit.TinyViT (covered)"))+A(+ mcase(+ "models.vit.VisionTransformer[small,random]",+ "models.vit",+ lambda: ev(VisionTransformer(image_size=32, patch_size=8, embed_dim=64, depth=2, num_heads=2)),+ lambda m: m,+ [torch.rand(1, 3, 32, 32)],+ note="random init; image_size=32 patch=8; output (1,17,64)",+ tags=("model",),+ )+)+A(+ case(+ "models.vit.VisionTransformer[non-square input]",+ "models.vit",+ None,+ [],+ skip="eager RuntimeError (pos-embed 17 vs 25 tokens) β VisionTransformer requires "+ "H=W=image_size (fixed pos_embed)",+ )+)+A(+ case(+ "models.vit.VisionTransformer.from_config[vit_b/16]",+ "models.vit",+ None,+ [],+ skip="86M-param random init (no pretrained weights shipped); small config covers the graph",+ )+)+A(+ mcase(+ "models.vit_mobile.MobileViT[xxs,random,64x128]",+ "models.vit_mobile",+ lambda: ev(MobileViT(mode="xxs")),+ lambda m: m,+ [torch.rand(1, 3, 64, 128)],+ note="random init; H,W must be multiples of 64 (64x96 fails eagerly: view '[96,2,1,2]' "+ "invalid β stride-32 grid "+ "must be divisible by patch_size 2)",+ tags=("model",),+ )+)+A(+ mcase(+ "models.vit_mobile.MobileViT[xxs,random,256]",+ "models.vit_mobile",+ lambda: ev(MobileViT(mode="xxs")),+ lambda m: m,+ [torch.rand(1, 3, 256, 256)],+ note="documented input size 256x256",+ tags=("model",),+ )+)++# ============================================================================= small_sr+from kornia.models.small_sr import SmallSRNet, SmallSRNetWrapper # noqa: E402++A(+ mcase(+ "models.small_sr.SmallSRNet[x3,pretrained]",+ "models.small_sr",+ lambda: ev(SmallSRNet(3, pretrained=True)),+ lambda m: m,+ [torch.rand(1, 1, 16, 24)],+ note="weights small_sr.pth; Y channel (1,1,H,W) -> (1,1,3H,3W) PixelShuffle",+ tags=("model", "pretrained"),+ )+)+A(+ mcase(+ "models.small_sr.SmallSRNetWrapper[x3,pretrained]",+ "models.small_sr",+ lambda: ev(SmallSRNetWrapper(3, pretrained=True)),+ lambda m: m,+ [torch.rand(1, 3, 16, 24)],+ note="RGB->YCbCr, SR on Y, bicubic upsample CbCr, ->RGB",+ tags=("model", "pretrained"),+ )+)+A(+ case(+ "contrib.SuperResolution",+ "contrib",+ lambda x: K.contrib.SuperResolution(+ model=torch.nn.Identity(), pre_processor=torch.nn.Identity(), post_processor=torch.nn.Identity(), name="x"+ ),+ [IMG],+ note="KORNIA BUG: abstract (ModelBase.from_config not implemented, no __init__) -> TypeError",+ )+)+A(+ case(+ "contrib.SmallSRBuilder.build",+ "contrib",+ lambda x: K.contrib.SmallSRBuilder.build("small_sr", pretrained=False),+ [IMG],+ note="KORNIA BUG: builder instantiates abstract SuperResolution -> TypeError at super_resolution.py:262",+ )+)+A(+ case(+ "contrib.RRDBNetBuilder.build",+ "contrib",+ None,+ [],+ skip="needs `basicsr` (not installed) and would hit the same abstract SuperResolution TypeError",+ )+)++# ============================================================================= processors+from kornia.models.processors import OutputRangePostProcessor, ResizePostProcessor, ResizePreProcessor # noqa: E402+from kornia.models.processors.naflex import NaFlex # noqa: E402++A(+ case(+ "models.processors.ResizePreProcessor",+ "models.processors",+ ResizePreProcessor(32, 40),+ [IMG],+ note="size (32,40) baked; returns (resized, original_sizes); per-image Python loop",+ )+)+A(+ case(+ "models.processors.ResizePreProcessor[batch2]",+ "models.processors",+ ResizePreProcessor(32, 40),+ [IMG2],+ tags=("batch>1",),+ )+)+A(+ case(+ "models.processors.ResizePostProcessor",+ "models.processors",+ ResizePostProcessor(),+ [torch.rand(1, 1, 32, 40), torch.tensor([[64, 96]])],+ note="original_sizes via .cpu().numpy().tolist(); returns inputs unchanged when torch.onnx.is_in_onnx_export()",+ )+)+A(+ case(+ "models.processors.OutputRangePostProcessor",+ "models.processors",+ OutputRangePostProcessor(0.0, 1.0),+ [torch.randn(1, 3, 16, 24)],+ note="clamp(0,1) baked",+ )+)+_pe_conv = torch.nn.Conv2d(3, 8, 8, 8)+A(+ case(+ "models.processors.NaFlex[interpolated pos]",+ "models.processors",+ NaFlex(_pe_conv, torch.randn(16, 8)),+ [torch.rand(1, 3, 32, 48)],+ note="pos-embed 4x4 grid interpolated to 4x6 with F.interpolate (bilinear); patch fn is a Conv2d",+ )+)+A(+ case(+ "models.processors.NaFlex[matching pos]",+ "models.processors",+ NaFlex(_pe_conv, torch.randn(16, 8)),+ [torch.rand(1, 3, 32, 32)],+ note="num_patches == pos rows -> plain add",+ )+)++# ============================================================================= VLM re-implementations (pure PyTorch)+from kornia.models.kimi_vl import KimiVLConfig, KimiVLModel, KimiVLProjectorConfig, MoonViT, MoonViTConfig # noqa: E402+from kornia.models.paligemma import PaliGemma, PaliGemmaConfig # noqa: E402+from kornia.models.qwen25 import Qwen2VLVisionTransformer # noqa: E402+from kornia.models.siglip2 import SigLip2Config, SigLip2ImagePreprocessor, SigLip2Model # noqa: E402+from kornia.models.siglip2.config import SigLip2TextConfig, SigLip2VisionConfig # noqa: E402+from kornia.models.smolvlm2 import SmolVLM2 # noqa: E402++_vcfg = SigLip2VisionConfig(+ image_size=32, patch_size=16, hidden_size=32, num_hidden_layers=1, num_attention_heads=2, intermediate_size=64+)+_tcfg = SigLip2TextConfig(+ vocab_size=100,+ hidden_size=32,+ num_hidden_layers=1,+ num_attention_heads=2,+ intermediate_size=64,+ max_position_embeddings=16,+)+_sig, _e_sig = build(lambda: ev(SigLip2Model(SigLip2Config(_vcfg, _tcfg, projection_dim=32))))+A(+ case(+ "models.siglip2.SigLip2Model[image only,tiny,random]",+ "models.vlm",+ raiser(_e_sig) if _e_sig else (lambda px: _sig(pixel_values=px)),+ [torch.rand(1, 3, 32, 32)],+ note="pure-PyTorch SigLIP2 (no transformers); tiny random config; SigLip2Result dataclass, None fields dropped",+ tags=("model",),+ )+)+A(+ case(+ "models.siglip2.SigLip2Model[image+text,tiny,random]",+ "models.vlm",+ raiser(_e_sig) if _e_sig else (lambda px, ids: _sig(pixel_values=px, input_ids=ids)),+ [torch.rand(2, 3, 32, 32), torch.randint(0, 100, (2, 8))],+ note="image+text -> embeds + logits_per_image/text",+ tags=("model", "batch>1"),+ )+)+A(+ case(+ "models.siglip2.SigLip2Model.get_image_features[non-square]",+ "models.vlm",+ None,+ [],+ skip="eager RuntimeError (pos-embed 4 vs 6 patches) β vision tower requires H=W=image_size "+ "(no pos-embed interpolation)",+ )+)+A(+ case(+ "models.siglip2.SigLip2ImagePreprocessor",+ "models.vlm",+ SigLip2ImagePreprocessor((32, 40)),+ [torch.rand(1, 3, 48, 64) * 255],+ note="Rescale(1/255) + Resize bicubic antialias + Normalize; size baked",+ )+)+A(+ case(+ "models.siglip2.SigLip2Builder.from_pretrained_hf",+ "models.vlm",+ None,+ [],+ skip="downloads google/siglip2-base-patch16-224 safetensors (~1.5 GB) from HF; weights > 500 MB",+ )+)+A(+ case(+ "models.siglip2.SigLip2Builder.from_name",+ "models.vlm",+ None,+ [],+ skip="random-init base config (~375M params); tiny random config covers the same graph",+ )+)+A(case("models.siglip2.SigLip2Config/SigLip2Result", "models.vlm", None, [], skip="config / result dataclasses"))++_mcfg = MoonViTConfig(+ image_size=28, patch_size=14, hidden_size=32, num_hidden_layers=1, num_attention_heads=2, intermediate_size=64+)+A(+ mcase(+ "models.kimi_vl.MoonViT[tiny,random]",+ "models.vlm",+ lambda: ev(MoonViT(_mcfg)),+ lambda m: m,+ [torch.rand(1, 3, 28, 42)],+ note="pure-PyTorch MoonViT; 2x3 patches vs 2x2 pos-embed -> interpolation path; 2D RoPE",+ tags=("model",),+ )+)+A(+ mcase(+ "models.kimi_vl.KimiVLModel[tiny,random]",+ "models.vlm",+ lambda: ev(KimiVLModel(KimiVLConfig(_mcfg, KimiVLProjectorConfig(32, 64, 48)))),+ lambda m: m,+ [torch.rand(1, 3, 28, 28)],+ note="MoonViT + pixel-unshuffle projector; h,w patch grid from input shape",+ tags=("model",),+ )+)+A(+ case(+ "models.kimi_vl.KimiVLBuilder",+ "models.vlm",+ None,+ [],+ skip="weights > 500 MB (Kimi-VL-A3B-Instruct vision tower + projector safetensors, multi-GB download)",+ )+)+A(+ case(+ "models.kimi_vl.KimiVLProjector",+ "models.vlm",+ None,+ [],+ skip="covered inside KimiVLModel case (needs h,w ints)",+ )+)+A(+ mcase(+ "models.qwen25.Qwen2VLVisionTransformer[tiny,random]",+ "models.vlm",+ lambda: ev(Qwen2VLVisionTransformer(embed_dim=32, depth=1, num_heads=2)),+ lambda m: m,+ [torch.rand(1, 3, 28, 42)],+ note="pure-PyTorch skeleton; conv14 patch embed + rotary attention blocks",+ tags=("model",),+ )+)+_pcfg = PaliGemmaConfig(+ vision_config=_vcfg,+ vocab_size=100,+ hidden_size=32,+ intermediate_size=64,+ num_hidden_layers=1,+ num_attention_heads=2,+ num_key_value_heads=1,+ head_dim=16,+ max_position_embeddings=64,+)+A(+ mcase(+ "models.paligemma.PaliGemma[tiny,random]",+ "models.vlm",+ lambda: ev(PaliGemma(_pcfg)),+ lambda m: m,+ [torch.randint(0, 100, (1, 4)), torch.rand(1, 3, 32, 32)],+ note="pure-PyTorch SigLIP2 tower + Gemma decoder (RMSNorm, RoPE, GQA); inputs (input_ids, pixel_values)",+ tags=("model",),+ )+)+A(+ mcase(+ "models.smolvlm2.SmolVLM2",+ "models.vlm",+ lambda: ev(SmolVLM2(16, 16)),+ lambda m: m,+ [torch.rand(1, 5, 16), torch.rand(1, 5, 16)],+ note="placeholder scaffold: sum of two Linear projections; image/text sequences must have equal length",+ tags=("model",),+ )+)++# ============================================================================= kornia.contrib β patches+_x = torch.rand(1, 2, 32, 48)+A(+ case(+ "contrib.extract_tensor_patches",+ "contrib.patches",+ K.contrib.extract_tensor_patches,+ [_x],+ {"window_size": 8, "stride": 8},+ note="window 8, stride 8 baked -> (1,24,2,8,8)",+ )+)+A(+ case(+ "contrib.extract_tensor_patches[rect window,stride,padding]",+ "contrib.patches",+ K.contrib.extract_tensor_patches,+ [_x],+ {"window_size": (8, 12), "stride": (4, 6), "padding": (2, 3)},+ note="non-square window/stride, padding (2,3)",+ )+)+A(+ case(+ "contrib.extract_tensor_patches[allow_auto_padding]",+ "contrib.patches",+ K.contrib.extract_tensor_patches,+ [_x],+ {"window_size": 10, "stride": 7, "allow_auto_padding": True},+ note="auto padding computed from static shape",+ )+)+A(+ case(+ "contrib.extract_tensor_patches[batch2]",+ "contrib.patches",+ K.contrib.extract_tensor_patches,+ [IMG2],+ {"window_size": 16, "stride": 16},+ tags=("batch>1",),+ )+)+A(case("contrib.ExtractTensorPatches", "contrib.patches", K.contrib.ExtractTensorPatches(8, stride=4, padding=2), [_x]))+_patches = K.contrib.extract_tensor_patches(_x, window_size=8, stride=8)+A(+ case(+ "contrib.combine_tensor_patches",+ "contrib.patches",+ K.contrib.combine_tensor_patches,+ [_patches],+ {"original_size": (32, 48), "window_size": 8, "stride": 8},+ note="original_size/window/stride baked; fold + overlap norm",+ )+)+_patches_o = K.contrib.extract_tensor_patches(_x, window_size=(8, 12), stride=(4, 6), padding=(2, 3))+A(+ case(+ "contrib.combine_tensor_patches[overlap,unpadding]",+ "contrib.patches",+ K.contrib.combine_tensor_patches,+ [_patches_o],+ {"original_size": (32, 48), "window_size": (8, 12), "stride": (4, 6), "unpadding": (2, 3)},+ note="overlapping windows: divides by ones-fold count (eps=1e-8)",+ )+)+_patches_a = K.contrib.extract_tensor_patches(_x, window_size=10, stride=7, allow_auto_padding=True)+A(+ case(+ "contrib.combine_tensor_patches[allow_auto_unpadding]",+ "contrib.patches",+ K.contrib.combine_tensor_patches,+ [_patches_a],+ {"original_size": (32, 48), "window_size": 10, "stride": 7, "allow_auto_unpadding": True},+ )+)+A(+ case(+ "contrib.CombineTensorPatches",+ "contrib.patches",+ K.contrib.CombineTensorPatches((32, 48), 8, stride=8),+ [_patches],+ )+)+A(+ case(+ "contrib.compute_padding",+ "contrib.patches",+ lambda d: K.contrib.compute_padding((32, 48), 10, 7),+ [torch.zeros(1)],+ note="returns tuple of Python ints -> expected no-tensor-output",+ )+)++# ============================================================================= kornia.contrib β tensor ops+_bin = (torch.rand(1, 1, 16, 24) > 0.6).float()+A(+ case(+ "contrib.connected_components",+ "contrib",+ K.contrib.connected_components,+ [_bin],+ {"num_iterations": 50},+ note="num_iterations=50 baked (Python for-loop unrolled into 50 max_pool2d stages); input 0/1 float mask",+ )+)+A(+ case(+ "contrib.connected_components[batch2,default 100 it]",+ "contrib",+ K.contrib.connected_components,+ [(torch.rand(2, 1, 12, 20) > 0.6).float()],+ note="100 unrolled iterations",+ tags=("batch>1",),+ )+)+A(+ case(+ "contrib.distance_transform",+ "contrib",+ K.contrib.distance_transform,+ [_bin],+ note="kernel_size=3, h=0.35 baked; Python loop over max(H,W)//2 iterations unrolled",+ )+)+A(+ case(+ "contrib.distance_transform[kernel_size=5]", "contrib", K.contrib.distance_transform, [_bin], {"kernel_size": 5}+ )+)+A(+ case(+ "contrib.distance_transform[3d]",+ "contrib",+ K.contrib.distance_transform,+ [(torch.rand(1, 1, 6, 10, 12) > 0.7).float()],+ note="3D input path",+ tags=("3d",),+ )+)+A(case("contrib.DistanceTransform", "contrib", K.contrib.DistanceTransform(kernel_size=3, h=0.35), [_bin]))+A(+ case(+ "contrib.diamond_square",+ "contrib",+ lambda d: K.contrib.diamond_square((1, 1, 16, 24), roughness=0.5, random_scale=1.0),+ [torch.zeros(1)],+ check=False,+ note="no tensor input; torch.rand inside graph (RandomUniformLike); output_size baked",+ )+)+A(+ case(+ "contrib.diamond_square[normalize_range]",+ "contrib",+ lambda d: K.contrib.diamond_square((2, 3, 16, 24), roughness=0.7, normalize_range=(0.0, 1.0)),+ [torch.zeros(1)],+ check=False,+ note="normalize_range applied",+ tags=("batch>1",),+ )+)+A(+ case(+ "contrib.histogram_matching",+ "contrib",+ K.contrib.histogram_matching,+ [torch.rand(1, 1, 16, 24), torch.rand(1, 1, 20, 30)],+ note="unique(return_inverse, return_counts) + cumsum + interp",+ )+)+A(+ case(+ "contrib.interp",+ "contrib",+ K.contrib.interp,+ [torch.rand(20) * 10, torch.linspace(0, 10, 6), torch.rand(6)],+ note="1-D linear interp via searchsorted/bucketize",+ )+)+_km_centers = torch.tensor([[0.0, 0.0], [5.0, 5.0], [0.0, 5.0]])+_km = K.contrib.KMeans(3, _km_centers, tolerance=None, max_iterations=5, seed=0)+A(+ case(+ "contrib.KMeans.predict",+ "contrib",+ _km.predict,+ [torch.randn(20, 2) * 0.5 + torch.tensor([2.5, 2.5])],+ note="cluster centers fixed (3,2); argmin of pairwise distances",+ )+)+++def _kmeans_fit(x):+ km = K.contrib.KMeans(3, _km_centers.clone(), tolerance=None, max_iterations=5, seed=0)+ km.fit(x)+ return km.cluster_centers+++A(+ case(+ "contrib.KMeans.fit",+ "contrib",+ _kmeans_fit,+ [torch.randn(20, 2) * 0.5 + torch.tensor([2.5, 2.5])],+ note="max_iterations=5, tolerance=None (fixed iteration count) but fit() uses torch.nonzero + data-dependent "+ "`if selected.shape[0] == 0` per cluster",+ )+)+A(case("contrib.Lambda", "contrib", K.contrib.Lambda(K.color.rgb_to_grayscale), [IMG], note="wraps rgb_to_grayscale"))++# ============================================================================= kornia.contrib β model wrappers+from kornia.contrib.face_detection import FaceDetector, FaceDetectorResult # noqa: E402++fd, _e_fd = build(lambda: ev(FaceDetector()))+A(+ mcase(+ "contrib.FaceDetector",+ "contrib.wrappers",+ reuse(fd, _e_fd),+ lambda m: m,+ [torch.rand(1, 3, 64, 96) * 255],+ note="YuNet + PriorBox + decode + confidence mask + NMS; returns list of (N,15); data-dependent shapes",+ tags=("model", "pretrained"),+ )+)+A(+ mcase(+ "contrib.FaceDetector.model",+ "contrib.wrappers",+ reuse(fd, _e_fd),+ lambda m: m.model,+ [torch.rand(1, 3, 64, 96) * 255],+ note="the underlying YuNet only (as FaceDetector.model)",+ tags=("model", "pretrained"),+ )+)+A(+ case(+ "contrib.FaceDetectorResult",+ "contrib.wrappers",+ lambda d: torch.stack(+ [+ FaceDetectorResult(d).xmin,+ FaceDetectorResult(d).ymin,+ FaceDetectorResult(d).xmax,+ FaceDetectorResult(d).ymax,+ FaceDetectorResult(d).score,+ FaceDetectorResult(d).top_left[..., 0],+ FaceDetectorResult(d).bottom_right[..., 1],+ ],+ -1,+ ),+ [torch.rand(15) * 60],+ note="property accessors on a (15,) detection vector; __init__ requires len(data) >= 15 "+ "(message says 14) so a (N,15) "+ "batch with N<15 is rejected",+ )+)+A(case("contrib.FaceKeypoint", "contrib.wrappers", None, [], skip="enum"))++edge, _e_ed = build(lambda: ev(K.contrib.EdgeDetectorBuilder.build("dexined", pretrained=True, image_size=64)))+A(+ mcase(+ "contrib.EdgeDetectorBuilder.build[dexined,image_size=64]",+ "contrib.wrappers",+ reuse(edge, _e_ed),+ lambda m: m,+ [torch.rand(1, 3, 48, 80) * 255],+ note="Normalize -> DexiNed -> Sigmoid with ResizePreProcessor(64,64) and ResizePostProcessor (numpy tolist); "+ "image_size=64 baked",+ tags=("model", "pretrained"),+ )+)+A(+ mcase(+ "contrib.EdgeDetector.model",+ "contrib.wrappers",+ reuse(edge, _e_ed),+ lambda m: m.model,+ [torch.rand(1, 3, 64, 64)],+ note="core nn.Sequential(Normalize, DexiNed, Sigmoid) without pre/post processors",+ tags=("model", "pretrained"),+ )+)++od, _e_od = build(+ lambda: ev(+ K.contrib.RTDETRDetectorBuilder.build("rtdetr_r18vd", pretrained=True, image_size=256, confidence_threshold=0.0)+ )+)+A(+ mcase(+ "contrib.RTDETRDetectorBuilder.build[r18vd,image_size=256,threshold=0]",+ "contrib.wrappers",+ reuse(od, _e_od),+ lambda m: m,+ [torch.rand(1, 3, 200, 320)],+ note="ObjectDetector = ResizePreProcessor(256,256) + RTDETR + DETRPostProcessor; threshold 0 "+ "-> all 300 boxes (1,300,6). "+ "KORNIA BUG: builder passes `confidence_filtering or not is_in_onnx_export()` so confidence_filtering=False "+ "is ignored at build time (list output); forward is @torch.inference_mode()",+ tags=("model", "pretrained"),+ )+)+od_f, _e_odf = build(+ lambda: ev(+ K.contrib.RTDETRDetectorBuilder.build("rtdetr_r18vd", pretrained=True, image_size=256, confidence_threshold=0.3)+ )+)+A(+ mcase(+ "contrib.RTDETRDetectorBuilder.build[r18vd,threshold=0.3,list output]",+ "contrib.wrappers",+ reuse(od_f, _e_odf),+ lambda m: m,+ [torch.rand(1, 3, 200, 320)],+ note="default confidence_filtering=True unless is_in_onnx_export(); list of (Di,6) tensors",+ tags=("model", "pretrained"),+ )+)+A(case("contrib.ObjectDetector", "contrib.wrappers", None, [], skip="constructed by RTDETRDetectorBuilder (covered)"))+A(+ case(+ "contrib.ObjectDetectorResult/BoundingBox/BoundingBoxDataFormat",+ "contrib.wrappers",+ None,+ [],+ skip="dataclasses / enum",+ )+)+A(+ case(+ "contrib.object_detection.results_from_detections",+ "contrib.wrappers",+ None,+ [],+ skip="returns a Python list of ObjectDetectorResult dataclasses",+ )+)+A(+ case(+ "contrib.object_detection.ResizePreProcessor",+ "contrib.wrappers",+ None,+ [],+ skip="re-export of kornia.models.processors.ResizePreProcessor (covered)",+ )+)+_det = torch.cat([torch.randint(0, 80, (1, 300, 1)).float(), torch.rand(1, 300, 1), torch.rand(1, 300, 4) * 100], -1)+A(+ case(+ "contrib.object_detection.BoxFiltering[filter_as_zero]",+ "contrib.wrappers",+ K.contrib.object_detection.BoxFiltering(filter_as_zero=True),+ [_det, torch.tensor(0.5)],+ note="threshold passed as 0-d tensor input; `confidence_threshold or "+ "self.confidence_threshold` -> bool() on tensor",+ )+)+A(+ case(+ "contrib.object_detection.BoxFiltering[filter_as_zero,classes_to_keep]",+ "contrib.wrappers",+ K.contrib.object_detection.BoxFiltering(torch.tensor(0.5), torch.tensor([1, 2, 3]), filter_as_zero=True),+ [_det],+ note="threshold + classes baked as buffers",+ )+)+A(+ case(+ "contrib.object_detection.BoxFiltering[list output]",+ "contrib.wrappers",+ K.contrib.object_detection.BoxFiltering(torch.tensor(0.5)),+ [_det],+ note="returns list of variable-size tensors",+ )+)+A(+ case(+ "contrib.ImageStitcher",+ "contrib.wrappers",+ None,+ [],+ skip="LoFTR matcher + RANSAC (Python loop over data-dependent inlier counts) + `.item()` in postprocess; "+ "variable-arity forward(*imgs) β blocker recorded, not exportable",+ )+)+A(+ case(+ "contrib.VisualPrompter",+ "contrib.wrappers",+ None,+ [],+ skip="stateful plain-Python API (set_image/predict) over SAM with Keypoints/Boxes prompts; "+ "sub-modules covered by "+ "models.sam cases; default config is vit_h (>500 MB)",+ )+)+A(case("contrib.BoxMotTracker", "contrib.wrappers", None, [], skip="`boxmot` not installed; stateful tracker"))++# ============================================================================= kornia.tracking+A(+ case(+ "tracking.HomographyTracker",+ "tracking",+ None,+ [],+ skip="stateful tracker (GFTTAffNetHardNet + LoFTR + RANSAC) returning (H, bool); RANSAC and LoFTR coarse "+ "matching are data-dependent β blocker recorded",+ )+)++# ============================================================================= kornia.sensors.camera+from kornia.geometry.vector import Vector2, Vector3 # noqa: E402+from kornia.image import ImageSize # noqa: E402+from kornia.sensors.camera import ( # noqa: E402+ CameraModel,+ CameraModelType,+ PinholeModel,+)++_pin = PinholeModel(ImageSize(480, 640), torch.tensor([[328.0, 328.0, 320.0, 240.0]]))+_pts3 = torch.tensor([[1.0, 2.0, 5.0], [-0.5, 0.3, 2.0]])+A(+ case(+ "sensors.camera.PinholeModel.project",+ "sensors.camera",+ lambda p: _pin.project(Vector3(p)).data,+ [_pts3],+ note="params (fx,fy,cx,cy) baked; Vector3 in -> Vector2 out (.data)",+ )+)+A(+ case(+ "sensors.camera.PinholeModel.unproject",+ "sensors.camera",+ lambda p, d: _pin.unproject(Vector2(p), d).data,+ [torch.tensor([[320.0, 240.0], [100.0, 50.0]]), torch.tensor([2.0, 3.0])],+ note="depth as live tensor",+ )+)+A(+ case(+ "sensors.camera.PinholeModel.matrix",+ "sensors.camera",+ lambda d: _pin.matrix(),+ [torch.zeros(1)],+ note="no tensor input: constant 3x3 K",+ )+)+A(+ case(+ "sensors.camera.PinholeModel.scale",+ "sensors.camera",+ lambda s: _pin.scale(s).params,+ [torch.tensor(0.5)],+ note="scale factor live tensor; returns new model params",+ )+)+A(+ case(+ "sensors.camera.CameraModel[pinhole].project",+ "sensors.camera",+ lambda p: (+ CameraModel(ImageSize(480, 640), CameraModelType.PINHOLE, torch.tensor([[328.0, 328.0, 320.0, 240.0]]))+ .project(Vector3(p))+ .data+ ),+ [_pts3],+ note="generic wrapper delegating via __getattr__",+ )+)+A(+ case(+ "sensors.camera.BrownConradyModel.project",+ "sensors.camera",+ None,+ [],+ skip="raises NotImplementedError in kornia (BrownConradyTransform.distort is a stub)",+ )+)+A(+ case(+ "sensors.camera.KannalaBrandtK3.project",+ "sensors.camera",+ None,+ [],+ skip="raises NotImplementedError in kornia (KannalaBrandtK3Transform.distort is a stub)",+ )+)+A(+ case(+ "sensors.camera.Orthographic.project",+ "sensors.camera",+ None,+ [],+ skip="raises NotImplementedError in kornia (Orthographic.project is a stub)",+ )+)+A(case("sensors.camera.CameraModelBase/CameraModelType", "sensors.camera", None, [], skip="base class / enum"))++# ============================================================================= kornia.image+from kornia.image import ChannelsOrder, Image, ImageLayout, PixelFormat # noqa: E402+from kornia.image.base import ColorSpace # noqa: E402+++def _mk_image(t: torch.Tensor, cs: ColorSpace = ColorSpace.RGB) -> Image:+ layout = ImageLayout(ImageSize(t.shape[-2], t.shape[-1]), t.shape[-3], ChannelsOrder.CHANNELS_FIRST)+ return Image(t, PixelFormat(cs, 32), layout)+++A(+ case(+ "image.Image.to_gray",+ "image",+ lambda t: _mk_image(t).to_gray().data,+ [torch.rand(3, 16, 24)],+ note="Image container (C,H,W) float32; RGB->gray",+ )+)+A(case("image.Image.to_bgr", "image", lambda t: _mk_image(t).to_bgr().data, [torch.rand(3, 16, 24)]))+A(+ case(+ "image.Image.to_rgb[from bgr]",+ "image",+ lambda t: _mk_image(t, ColorSpace.BGR).to_rgb().data,+ [torch.rand(3, 16, 24)],+ )+)+A(case("image.Image.float", "image", lambda t: _mk_image(t).float().data, [torch.rand(3, 16, 24)], note="dtype no-op"))+A(case("image.Image.from_numpy/to_numpy/write/from_file", "image", None, [], skip="numpy / file IO"))+A(case("image.ImageSize/ImageLayout/PixelFormat/ChannelsOrder", "image", None, [], skip="metadata dataclasses / enums"))+A(+ case(+ "image.image_to_tensor/tensor_to_image/ImageToTensor/image_list_to_tensor",+ "image",+ None,+ [],+ skip="numpy <-> tensor conversion utilities (numpy input)",+ )+)+A(case("image.image_to_string/print_image", "image", None, [], skip="return/print strings"))+A(case("image.perform_keep_shape_image/video", "image", None, [], skip="decorators"))+A(+ case(+ "image.draw_line",+ "image",+ K.image.draw_line,+ [torch.zeros(3, 16, 24), torch.tensor([2, 3]), torch.tensor([20, 12]), torch.tensor([1.0, 0.5, 0.2])],+ note="Bresenham-like Python loop over max(|dx|,|dy|) computed from tensor values",+ )+)+A(+ case(+ "image.draw_point2d",+ "image",+ K.image.draw_point2d,+ [torch.zeros(3, 16, 24), torch.tensor([[2, 3], [10, 12], [20, 5]]), torch.tensor([1.0, 0.5, 0.2])],+ note="`zip(*points)` iterates tensor rows in Python",+ )+)+A(+ case(+ "image.draw_rectangle",+ "image",+ K.image.draw_rectangle,+ [+ torch.zeros(1, 3, 16, 24),+ torch.tensor([[[2.0, 3.0, 12.0, 10.0], [5.0, 1.0, 20.0, 14.0]]]),+ torch.tensor([1.0, 0.5, 0.2]),+ ],+ note="Python loop over batch and boxes with tensor-derived slicing",+ )+)+A(+ case(+ "image.draw_rectangle[fill]",+ "image",+ K.image.draw_rectangle,+ [torch.zeros(1, 3, 16, 24), torch.tensor([[[2.0, 3.0, 12.0, 10.0]]]), torch.tensor([1.0, 0.5, 0.2])],+ {"fill": True},+ )+)+A(+ case(+ "image.draw_convex_polygon",+ "image",+ K.image.draw_convex_polygon,+ [+ torch.zeros(1, 3, 16, 24),+ torch.tensor([[[2.0, 2.0], [20.0, 4.0], [18.0, 14.0], [4.0, 12.0]]]),+ torch.tensor([[1.0, 0.5, 0.2]]),+ ],+ note="polygon rasterisation via edge functions (vectorised)",+ )+)+A(+ case(+ "image.make_grid",+ "image",+ K.image.make_grid,+ [torch.rand(6, 3, 8, 12)],+ {"n_row": 3, "padding": 2},+ note="n_row, padding baked",+ )+)++# ============================================================================= heavy SAM encoders last+A(+ case(+ "models.sam.Sam.image_encoder[mobile_sam,pretrained]",+ "models.sam",+ raiser(_e_sm) if _e_sm else sam_mobile.image_encoder,+ [torch.rand(1, 3, 1024, 1024)],+ note="weights mobile_sam.pt (HF kornia/mobile_sam); TinyViT-5m img_size=1024 mobile_sam head -> (1,256,64,64); "+ "1024x1024 input mandatory",+ tags=("model", "pretrained"),+ )+)+A(+ case(+ "models.sam.Sam.image_encoder[vit_b,random]",+ "models.sam",+ raiser(_e_sb) if _e_sb else sam_b.image_encoder,+ [torch.rand(1, 3, 1024, 1024)],+ note="ImageEncoderViT ViT-B, window attention 14, random init; 1024x1024 mandatory (abs pos_embed 64x64)",+ tags=("model",),+ )+)++if __name__ == "__main__":+ run_cases(CASES, sys.argv[1], only=sys.argv[2:] or None)diff --git a/docs/export_support/harness.py b/docs/export_support/harness.pynew file mode 100644index 000000000..1fcd721cf--- /dev/null+++ b/docs/export_support/harness.py@@ -0,0 +1,467 @@+# LICENSE HEADER MANAGED BY add-license-header+#+# Copyright 2018 Kornia Team+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+#++"""Shared harness of the library-wide graph-capture survey behind the ONNX / torch.compile / torch.export+support page (docs/source/get-started/export-support.rst, rendered by docs/generate_export_support.py).++A *case* is one public kornia callable (function or nn.Module instance) plus a concrete set of+tensor inputs. Every tensor input becomes an ONNX graph input; Python-only kwargs are baked into+the graph. The harness:++ 1. runs the target eagerly (reference),+ 2. exports with ``torch.onnx.export(dynamo=True, opset_version=18)``,+ 3. runs ``onnx.checker.check_model`` (full check),+ 4. runs the graph in onnxruntime (CPU) and compares every tensor output against the reference,+ 5. records op types, size, wall time and (on failure) the root-cause error.++Usage from a registry file::++ from harness import case, run_cases+ CASES = [case("rgb_to_grayscale", "color", K.color.rgb_to_grayscale, [torch.rand(1, 3, 32, 32)]), ...]+ if __name__ == "__main__":+ run_cases(CASES, sys.argv[1], only=sys.argv[2:] or None)++Statuses: ok | ok-unverified (check=False, nondeterministic op) | eager-fail | export-fail |+checker-fail | ort-load-fail | ort-run-fail | mismatch | no-tensor-output | skipped.+"""++from __future__ import annotations++import copy+import io+import json+import logging+import os+import subprocess+import time+import traceback+import warnings+from typing import Any++import numpy as np+import onnx+import onnxruntime as ort+import torch+from torch import nn+from torch.utils._pytree import tree_flatten++logging.disable(logging.CRITICAL)+warnings.filterwarnings("ignore")+ort.set_default_logger_severity(3)+torch.set_num_threads(4)++SEED = 1234+++def case(+ name: str,+ group: str,+ target: Any,+ inputs: list[torch.Tensor],+ kwargs: dict[str, Any] | None = None,+ *,+ note: str = "",+ check: bool = True,+ atol: float = 2e-4,+ rtol: float = 1e-3,+ skip: str | None = None,+ tags: tuple[str, ...] = (),+ method: str | None = None,+) -> dict[str, Any]:+ """Describe one survey case.++ Args:+ name: unique display name (usually the public callable, e.g. ``"filters.filter3d"``).+ group: report grouping (``"filters"``, ``"geometry.epipolar"``, ``"feature.descriptors"``...).+ target: nn.Module instance or plain callable ``fn(*inputs, **kwargs)``.+ inputs: tensors; each becomes a live ONNX input. Non-tensor positional args go in ``kwargs``+ only when the callable accepts them by keyword; otherwise wrap with a lambda.+ kwargs: Python-only keyword args baked as constants.+ note: free text shown in the report (e.g. "kernel_size baked", "weights: hardnet liberty").+ check: False for ops with randomness inside the graph -> export+run only, output unverified.+ skip: reason string; the case is reported as skipped without running.+ tags: e.g. ("3d", "model", "pretrained").+ method: call this method on the module instead of ``forward`` (e.g. ``"detect"``).+ """+ return {+ "name": name,+ "group": group,+ "target": target,+ "inputs": list(inputs),+ "kwargs": dict(kwargs or {}),+ "note": note,+ "check": check,+ "atol": atol,+ "rtol": rtol,+ "skip": skip,+ "tags": list(tags),+ "method": method,+ }+++# ----------------------------------------------------------------------------- wrapping+++def _flatten_outputs(out: Any) -> list[torch.Tensor]:+ # dataclass-like kornia containers (Boxes, Keypoints, Se3, Quaternion, Image...) expose tensors via attributes+ if hasattr(out, "data") and isinstance(out.data, torch.Tensor) and not isinstance(out, torch.Tensor):+ return [out.data]+ if hasattr(out, "__dict__") and not isinstance(out, (torch.Tensor, dict, list, tuple)):+ vals = []+ for v in vars(out).values():+ vals += _flatten_outputs(v)+ if vals:+ return vals+ leaves, _ = tree_flatten(out)+ res = []+ for x in leaves:+ if isinstance(x, torch.Tensor):+ res.append(x)+ elif hasattr(x, "data") and isinstance(x.data, torch.Tensor):+ res.append(x.data)+ return res+++def make_wrapper(target: Any, kwargs: dict[str, Any], n_inputs: int, method: str | None) -> nn.Module:+ """Return an nn.Module with a fixed-arity forward(in0, ..., inN-1) -> tuple[Tensor, ...]."""+ args = ", ".join(f"in{i}" for i in range(n_inputs))+ src = f"def forward(self, {args}):\n return self._call(({args},))\n"+ ns: dict[str, Any] = {}+ exec(src, ns) # noqa: S102++ class Wrap(nn.Module):+ def __init__(self) -> None:+ super().__init__()+ if isinstance(target, nn.Module):+ self.target = target+ else:+ self._fn = target+ self.kw = kwargs++ def _call(self, xs: tuple) -> tuple:+ t = self.target if isinstance(target, nn.Module) else self._fn+ fn = getattr(t, method) if method else t+ out = fn(*xs, **self.kw)+ outs = _flatten_outputs(out)+ if not outs:+ raise RuntimeError("NO_TENSOR_OUTPUT")+ return tuple(outs)++ Wrap.forward = ns["forward"]+ return Wrap()+++# ----------------------------------------------------------------------------- utilities+++def to_np(x: torch.Tensor) -> np.ndarray:+ x = x.detach().cpu()+ if x.dtype == torch.bfloat16:+ x = x.float()+ return x.numpy()+++def close(a: np.ndarray, b: np.ndarray, atol: float, rtol: float) -> tuple[bool, str]:+ a, b = np.asarray(a), np.asarray(b)+ if a.shape != b.shape:+ return False, f"shape {a.shape} vs {b.shape}"+ if bool in (a.dtype, b.dtype):+ ok = bool(np.array_equal(a, b))+ return ok, "" if ok else f"{int((a != b).sum())} bool mismatches"+ a64, b64 = a.astype(np.float64), b.astype(np.float64)+ nan_a, nan_b = np.isnan(a64), np.isnan(b64)+ if nan_a.any() or nan_b.any():+ if not np.array_equal(nan_a, nan_b):+ return False, f"NaN pattern differs (torch {int(nan_a.sum())}, ort {int(nan_b.sum())} NaNs)"+ a64, b64 = a64[~nan_a], b64[~nan_b]+ ok = bool(np.allclose(a64, b64, atol=atol, rtol=rtol))+ if ok:+ return True, ""+ diff = np.abs(a64 - b64)+ return (+ False,+ f"max abs diff {diff.max():.3e} at {int((diff > atol + rtol * np.abs(b64)).sum())}/{diff.size} elements",+ )+++def op_types(model: onnx.ModelProto) -> list[str]:+ s: set[str] = set()++ def walk(graph: onnx.GraphProto) -> None:+ for n in graph.node:+ s.add(n.op_type if n.domain in ("", "ai.onnx") else f"{n.domain}.{n.op_type}")+ for a in n.attribute:+ if a.type == onnx.AttributeProto.GRAPH:+ walk(a.g)+ for gg in a.graphs:+ walk(gg)++ walk(model.graph)+ for f in model.functions:+ for n in f.node:+ s.add(n.op_type if n.domain in ("", "ai.onnx") else f"{n.domain}.{n.op_type}")+ return sorted(x for x in s if not x.startswith("pkg."))+++def err_str(e: BaseException) -> str:+ root = e+ while root.__cause__ is not None or root.__context__ is not None:+ root = root.__cause__ or root.__context__ # type: ignore[assignment]+ parts = [f"{type(e).__name__}"]+ msg_src = root if root is not e else e+ msg = [ln for ln in str(msg_src).splitlines() if ln.strip()]+ first = (msg[0] if msg else "")[:240]+ parts.append(f"<- {type(root).__name__}: {first}" if root is not e else f": {first}")+ return " ".join(parts)+++def err_full(e: BaseException) -> str:+ out = []+ x: BaseException | None = e+ while x is not None:+ out.append(f"{type(x).__name__}: {str(x)[:2000]}")+ x = x.__cause__ or x.__context__+ return "\n-- caused by --\n".join(out)[-4000:]+++def _kornia_frames(e: BaseException) -> list[str]:+ """Locate the kornia source lines involved in a failure (root cause first)."""+ frames: list[str] = []+ x: BaseException | None = e+ while x is not None:+ for fr in traceback.extract_tb(x.__traceback__):+ if "/kornia/kornia/" in fr.filename:+ short = fr.filename.split("/kornia/kornia/")[-1]+ frames.append(f"kornia/{short}:{fr.lineno} {fr.line.strip() if fr.line else ''}")+ x = x.__cause__ or x.__context__+ # dedupe, keep order, innermost last+ seen: set[str] = set()+ res = [f for f in frames if not (f in seen or seen.add(f))]+ return res[-6:]+++def export(m: nn.Module, inputs: list[torch.Tensor]) -> onnx.ModelProto:+ import contextlib++ buf = io.BytesIO()+ # dynamo prints the whole FX graph on data-dependent failures; keep the survey log readable+ with torch.no_grad(), open(os.devnull, "w") as dn, contextlib.redirect_stdout(dn), contextlib.redirect_stderr(dn):+ prog = torch.onnx.export(+ m,+ tuple(inputs),+ dynamo=True,+ opset_version=18,+ verbose=False,+ report=False,+ optimize=os.environ.get("KORNIA_SURVEY_OPTIMIZE", "1") == "1",+ )+ prog.save(buf)+ return onnx.load_from_string(buf.getvalue())+++# ----------------------------------------------------------------------------- runner+++def run_case(c: dict[str, Any]) -> dict[str, Any]:+ rec: dict[str, Any] = {k: c[k] for k in ("name", "group", "note", "tags", "check")}+ rec["n_inputs"] = len(c["inputs"])+ rec["input_shapes"] = [list(x.shape) + [str(x.dtype).replace("torch.", "")] for x in c["inputs"]]+ rec["baked"] = {k: repr(v)[:60] for k, v in c["kwargs"].items()}+ if c["skip"]:+ rec.update(status="skipped", error=c["skip"])+ return rec+ t0 = time.time()+ try:+ target = c["target"]+ if isinstance(target, nn.Module):+ target.eval()+ wrap = make_wrapper(target, c["kwargs"], len(c["inputs"]), c["method"])+ inputs = [x.detach().clone() for x in c["inputs"]]+ torch.manual_seed(SEED)+ with torch.no_grad():+ ref = wrap(*copy.deepcopy(inputs))+ rec["n_outputs"] = len(ref)+ rec["output_shapes"] = [list(x.shape) + [str(x.dtype).replace("torch.", "")] for x in ref]+ except Exception as e:+ status = "no-tensor-output" if "NO_TENSOR_OUTPUT" in str(e) else "eager-fail"+ rec.update(status=status, error=err_str(e), error_full=err_full(e), where=_kornia_frames(e))+ return rec+ try:+ torch.manual_seed(SEED)+ model = export(wrap, inputs)+ except Exception as e:+ rec.update(+ status="export-fail",+ error=err_str(e),+ error_full=err_full(e),+ where=_kornia_frames(e),+ time_s=round(time.time() - t0, 1),+ )+ return rec+ blob = model.SerializeToString()+ rec["size_kb"] = len(blob) // 1024+ rec["ops"] = op_types(model)+ rec["time_s"] = round(time.time() - t0, 1)+ try:+ onnx.checker.check_model(model, full_check=True)+ except Exception as e:+ rec.update(status="checker-fail", error=err_str(e), error_full=err_full(e))+ return rec+ try:+ sess = ort.InferenceSession(blob, providers=["CPUExecutionProvider"])+ except Exception as e:+ rec.update(status="ort-load-fail", error=err_str(e), error_full=err_full(e))+ return rec+ names = [i.name for i in sess.get_inputs()]+ rec["graph_inputs"] = names+ feed = {}+ dropped = []+ for i, x in enumerate(inputs):+ n = f"in{i}"+ if n in names:+ feed[n] = to_np(x)+ else:+ dropped.append(n)+ if len(feed) != len(names):+ # exporter renamed inputs: fall back to positional feed when the count matches+ if len(names) == len(inputs):+ feed = {n: to_np(x) for n, x in zip(names, inputs)}+ dropped = []+ else:+ rec.update(+ status="ort-run-fail", error=f"cannot map inputs: graph has {names}, case has {len(inputs)} tensors"+ )+ return rec+ rec["dropped_inputs"] = dropped+ try:+ outs = sess.run(None, feed)+ except Exception as e:+ rec.update(status="ort-run-fail", error=err_str(e), error_full=err_full(e))+ return rec+ if not c["check"]:+ rec["status"] = "ok-unverified"+ return rec+ if len(outs) != len(ref):+ rec.update(status="mismatch", error=f"{len(outs)} ORT outputs vs {len(ref)} torch outputs")+ return rec+ bad = []+ for i, (a, b) in enumerate(zip(ref, outs)):+ ok, why = close(to_np(a), b, c["atol"], c["rtol"])+ if not ok:+ bad.append(f"out{i}: {why}")+ if bad:+ rec.update(status="mismatch", error="; ".join(bad)[:400])+ return rec+ rec["status"] = "ok"+ return rec+++HERE = os.path.dirname(os.path.abspath(__file__))+REPO = os.path.dirname(os.path.dirname(HERE))+++def provenance() -> dict[str, str]:+ """The kornia revision and torch version a probe run measures, stamped into its inventory."""++ def git(*args: str) -> str:+ return subprocess.run(["git", *args], cwd=REPO, capture_output=True, text=True, check=False).stdout.strip()++ dirty = "-dirty" if git("status", "--porcelain", "--", "kornia") else ""+ return {"revision": git("rev-parse", "--short", "HEAD") + dirty, "torch": torch.__version__}+++def inventory_path(out_json: str) -> str:+ """``results/inventory_<name>.json`` next to ``results/<name>.json``."""+ return os.path.join(os.path.dirname(out_json), "inventory_" + os.path.basename(out_json))+++def load_inventory(out_json: str) -> dict[str, Any] | None:+ try:+ return json.load(open(inventory_path(out_json)))+ except (OSError, ValueError):+ return None+++def prepare_resume(cases: list[dict[str, Any]], out_json: str) -> dict[str, dict[str, Any]]:+ """Records of ``out_json`` worth reusing, then (re)write the inventory this run is measured against.++ Records left by another kornia revision or torch version are discarded rather than resumed:+ the inventory that accompanied them names what produced them, and a file without one predates+ the stamp, so it is not trusted either.+ """+ done: dict[str, dict[str, Any]] = {}+ if os.path.exists(out_json):+ try:+ done = {r["name"]: r for r in json.load(open(out_json))}+ except Exception:+ done = {}+ inv = load_inventory(out_json)+ stamp = provenance()+ if done and (inv is None or {k: inv.get(k) for k in stamp} != stamp):+ was = inv and (inv.get("revision"), inv.get("torch"))+ print(f"{out_json}: records are from {was}, starting over", flush=True)+ done = {}+ os.makedirs(os.path.dirname(os.path.abspath(out_json)), exist_ok=True)+ json.dump({"names": [c["name"] for c in cases], **stamp}, open(inventory_path(out_json), "w"), indent=1)+ return done+++def run_cases(cases: list[dict[str, Any]], out_json: str, only: list[str] | None = None, resume: bool = True) -> None:+ names = [c["name"] for c in cases]+ dup = {n for n in names if names.count(n) > 1}+ if dup:+ raise SystemExit(f"duplicate case names: {sorted(dup)}")+ done = prepare_resume(cases, out_json) if resume else {}+ results: list[dict[str, Any]] = []+ for c in cases:+ if only and not any(o == c["name"] or o == c["group"] or c["name"].startswith(o) for o in only):+ continue+ if c["name"] in done and done[c["name"]].get("status") not in (None, "crashed") and not only:+ results.append(done[c["name"]])+ continue+ # mark as crashed first so a hard crash (segfault) is visible after restart+ json.dump(+ results + [{"name": c["name"], "group": c["group"], "status": "crashed", "note": c["note"]}],+ open(out_json, "w"),+ indent=1,+ default=str,+ )+ rec = run_case(c)+ results.append(rec)+ json.dump(results, open(out_json, "w"), indent=1, default=str)+ extra = rec.get("error", "")+ if rec["status"] == "ok" and rec.get("dropped_inputs"):+ extra = f"inputs folded away: {rec['dropped_inputs']}"+ print(+ f"{rec['name']:48s} {rec['status']:14s} {rec.get('size_kb', ''):>6} {rec.get('time_s', ''):>6} {extra}",+ flush=True,+ )+ if only:+ # merge into existing file without disturbing other records+ merged = {r["name"]: r for r in done.values()}+ for r in results:+ merged[r["name"]] = r+ order = [c["name"] for c in cases]+ json.dump(+ [merged[n] for n in order if n in merged] + [r for n, r in merged.items() if n not in order],+ open(out_json, "w"),+ indent=1,+ default=str,+ )+ from collections import Counter++ print("SUMMARY", dict(Counter(r["status"] for r in results)), flush=True)diff --git a/docs/export_support/merge.py b/docs/export_support/merge.pynew file mode 100644index 000000000..6f86d8394--- /dev/null+++ b/docs/export_support/merge.py@@ -0,0 +1,402 @@+# LICENSE HEADER MANAGED BY add-license-header+#+# Copyright 2018 Kornia Team+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+#++"""Merge the ONNX survey results and the torch.export / torch.compile probe results into+docs/source/_data/export_support.json, the committed snapshot the support page is rendered from.++Usage: python merge.py <onnx_results_glob> <compile_results_glob> <out.json> [--force]++Every results file is checked against the ``inventory_*.json`` its probe wrote next to it: each+case named there needs a record that is not a crash marker, and all inventories must name the same+kornia revision and torch version. A shortfall aborts the merge so a partial run cannot overwrite+the committed snapshot; ``--force`` merges anyway and stamps the header with what was checked.++Cross-references on the page come from the Sphinx inventory of the last docs build+(docs/build/html/objects.inv) when it exists; without one every operator is rendered as plain text.+"""++from __future__ import annotations++import datetime as dt+import glob+import json+import platform+import re+import subprocess+import sys+from pathlib import Path++PACKAGE_OF = {+ "augmentation": "kornia.augmentation",+ "augmentation3d": "kornia.augmentation",+ "sensors": "kornia.sensors",+}++# aten ops the dynamo ONNX exporter has no lowering for, named the way users call them.+ATEN_NAMES = {+ "_linalg_svd": "torch.linalg.svd",+ "_linalg_solve_ex": "torch.linalg.solve",+ "linalg_lu_factor_ex": "torch.linalg.lu_factor",+ "_linalg_eigh": "torch.linalg.eigh",+ "linalg_qr": "torch.linalg.qr",+ "histc": "torch.histc",+ "searchsorted": "torch.searchsorted",+ "_conj": "complex conj (torch.fft)",+ "reciprocal": "complex reciprocal",+}+++def _first_frame(where) -> str:+ if not where:+ return ""+ if isinstance(where, str):+ try:+ where = json.loads(where.replace("'", '"'))+ except Exception:+ return ""+ # the deepest kornia frame is the most useful one+ frame = str(where[-1])+ m = re.match(r"(kornia/[\w/.]+:\d+)", frame)+ return m.group(1) if m else ""+++# (substring of the error message, user-facing cause), first match wins. The input shapes are always+# concrete at capture time; the "data-dependent" family is about tensor *values* being read back+# into Python, which no fixed graph can represent.+_CAUSES = [+ (+ "Could not extract specialized integer from data-dependent expression",+ "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ ),+ ("GuardOnDataDependentSymNode", "a Python branch (if / while) tests tensor values at run time"),+ ("Data-dependent branching", "a Python branch (if / while) tests tensor values at run time"),+ ("Dynamic shape operator", "the output shape depends on tensor values (nonzero / boolean indexing)"),+ ("depends on input Tensor data", "the output shape depends on tensor values (nonzero / boolean indexing)"),+ ("torch._C.Generator", "a torch.Generator argument cannot be captured"),+ (+ "Nodes in a graph must be topologically sorted",+ "exporter bug: onnxscript emits an unsorted graph (the eager result is correct)",+ ),+ ("is mutated in the forward method", "a constant buffer is mutated in place during the forward"),+ ("No conversion available yet when dim is None", "no ONNX lowering for the dim=None reduction the operator uses"),+ (+ "Overloaded torch operator invoked from Python failed to match",+ "the exporter cannot resolve the torch overload the operator calls",+ ),+ ("its data is not allocated", "a tensor value is read back into Python (.item() / bool()) during the forward"),+ ("_local_scalar_dense", "a tensor value is read back into Python (.item() / bool()) during the forward"),+]++# torch-version bugs: (all substrings present, cause)+_TORCH_BUGS = [+ (+ ("InductorError", "CalledProcessError"),+ "inductor C++ codegen bug in this torch version (generated kernel does not compile)",+ ),+ (("InductorError", "g++"), "inductor C++ codegen bug in this torch version (generated kernel does not compile)"),+ (+ ("BackendCompilerFailed", "UntypedStorage"),+ "inductor bug in this torch version (KeyError on a tensor storage while lowering the graph)",+ ),+]++_STATUS_CAUSES = {+ "mismatch": "runs, but the result differs from eager: {e}",+ "eager-fail": "does not run eagerly with the probed inputs: {e}",+ "no-tensor-output": "returns no tensor (Python object output), nothing to capture",+ "ort-run-fail": "onnxruntime cannot run the exported graph: {e}",+ "ort-load-fail": "onnxruntime cannot run the exported graph: {e}",+ "checker-fail": "onnx.checker rejects the exported graph: {e}",+ "crashed": "the probe process crashed (segfault / out of memory)",+}+++def _reason(status: str, error: str) -> str:+ """Short, user-facing cause of a non-ok status."""+ e = error or ""+ m = re.search(r"No ONNX function found for <OpOverload\(op='aten\.(\w+)'", e)+ if m:+ op = m.group(1)+ return f"no ONNX lowering for {ATEN_NAMES.get(op, 'aten.' + op)}"+ for needle, cause in _CAUSES:+ if needle in e:+ return cause+ if "DataDependentOutputException" in e:+ m = re.search(r"DataDependentOutputException\s*:?\s*(?:<-\s*)?aten\.(\w+)", e)+ return f"{m.group(1) if m else 'an operator'} produces a Python value from tensor values (no graph output)"+ for needles, cause in _TORCH_BUGS:+ if all(n in e for n in needles):+ return cause+ if status in _STATUS_CAUSES:+ return _STATUS_CAUSES[status].format(e=e[:120])+ return e[:160]+++def _norm_onnx(r: dict) -> tuple[str, str]:+ s = r["status"]+ err = str(r.get("error", "") or "")+ if s in ("ok", "ok-unverified"):+ return s, "" if s == "ok" else "random operator: exported and ran; only output shape and finiteness are checked"+ if s in ("export-fail", "checker-fail", "ort-run-fail", "ort-load-fail"):+ return "fail", _reason(s, err)+ if s == "mismatch":+ return "mismatch", _reason(s, err)+ return "n/a", _reason(s, err)+++def _norm_export(c: dict | None) -> tuple[str, str]:+ if c is None:+ return "n/a", "not probed"+ s = str(c.get("export", ""))+ if s == "ok":+ return "ok", ""+ if s == "fail":+ return "fail", _reason(s, str(c.get("export_error", "")))+ return "n/a", _reason(s, str(c.get("error", c.get("skip", ""))))+++def _norm_compile(c: dict | None) -> tuple[str, int, str]:+ if c is None:+ return "n/a", 0, "not probed"+ s = str(c.get("compile", ""))+ breaks = int(c.get("graph_breaks", 0) or 0)+ if s == "ok":+ return "ok", 0, ""+ if s.startswith("ok-breaks"):+ reasons = c.get("break_reasons") or []+ why = ""+ if reasons:+ why = _reason("", str(reasons[0])) or str(reasons[0]).split("\n")[0]+ return "ok-breaks", breaks, f"{breaks} graph break{'s' if breaks != 1 else ''}: {why}".rstrip(": ")+ if s == "ok-unverified":+ return (+ "ok-unverified",+ breaks,+ "random operator: compiled and ran; only output shape and finiteness are checked",+ )+ if s == "mismatch":+ return "mismatch", breaks, _reason(s, str(c.get("compile_error", "")))+ if s == "fail":+ return "fail", breaks, _reason(s, str(c.get("compile_error", "")))+ return "n/a", 0, _reason(s, str(c.get("error", c.get("skip", ""))))+++def _split_name(name: str, group: str) -> tuple[str, str]:+ """'transform.warp_perspective[fill]' in group 'geometry.transform' -> ('warp_perspective', 'fill')."""+ parts = set(group.split("."))+ op = name+ changed = True+ while changed:+ changed = False+ for p in parts:+ if op.startswith(p + ".") and len(op) > len(p) + 1:+ op = op[len(p) + 1 :]+ changed = True+ variant = ""+ m = re.match(r"^(.*?)\[(.*)\]$", op)+ if m:+ op, variant = m.group(1), m.group(2).replace("][", ", ") # 'RandomCrop[p=0.5][random]' -> 'p=0.5, random'+ return op, variant+++def _ref_by_name(package: str, op: str, inventory: set[str]) -> str:+ """Shortest documented name under ``package`` that ends in ``op`` (``Boxes.to_mask`` matches a method)."""+ if not re.match(r"^[A-Za-z_][\w.]*$", op):+ return ""+ cands = [n for n in inventory if n.startswith(package + ".") and n.endswith("." + op)]+ return min(cands, key=len) if cands else ""+++def _public_ref(qualname: str | None, inventory: set[str]) -> str:+ """Shortest documented alias of an internal qualified name, or '' when the object is not documented."""+ if not qualname:+ return ""+ mod, _, obj = qualname.rpartition(".")+ # methods: module.Class.method -> the object part is Class.method+ parts = mod.split(".")+ for i in range(len(parts)):+ if parts[i].startswith("_"):+ parts = parts[:i]+ break+ obj_parts = qualname.split(".")+ for n_obj in (1, 2):+ obj = ".".join(obj_parts[-n_obj:])+ mod_parts = obj_parts[:-n_obj]+ for k in range(1, len(mod_parts) + 1):+ cand = ".".join(mod_parts[:k] + [obj])+ if cand in inventory:+ return cand+ return ""+++REPO = Path(__file__).resolve().parents[2]+++def _load_results(pattern: str) -> dict[str, dict]:+ """Records from every file matching ``pattern``, keyed by case name.++ A crash marker, or an eager failure caused by a poisoned interpreter (an earlier case left the+ dispatcher unusable), never overrides a real record from another file.+ """+ out: dict[str, dict] = {}+ for f in sorted(glob.glob(pattern)):+ for r in json.load(open(f)):+ bogus = "crashed" in (r.get("export"), r.get("status")) or "PythonDispatcherTLS" in str(r.get("error", ""))+ if bogus and r["name"] in out:+ continue+ out[r["name"]] = r+ return out+++def _validate(patterns: list[str], force: bool) -> dict[str, str]:+ """Check every results file against its probe inventory; return the provenance the run agrees on.++ Missing inventories, cases without a record (or with only a crash marker) and groups measured+ at different revisions or torch versions are reported; they abort the merge unless ``force``.+ """+ from harness import inventory_path, load_inventory++ problems: list[str] = []+ stamps: dict[tuple[str, str], list[str]] = {}+ files = [f for pattern in patterns for f in sorted(glob.glob(pattern))]+ if not files:+ problems.append(f"no results match {patterns}")+ for f in files:+ inv = load_inventory(f)+ if inv is None:+ problems.append(f"{f}: no {Path(inventory_path(f)).name} next to it (rerun the probe)")+ continue+ stamps.setdefault((inv.get("revision", "?"), inv.get("torch", "?")), []).append(Path(f).name)+ have = {r["name"] for r in json.load(open(f)) if "crashed" not in (r.get("status"), r.get("export"))}+ missing = [n for n in inv["names"] if n not in have]+ if missing:+ problems.append(f"{f}: {len(missing)} of {len(inv['names'])} cases have no record, e.g. {missing[:3]}")+ if len(stamps) > 1:+ problems.append("results were measured at different revisions / torch versions: " + str(stamps))+ if problems:+ print("\n".join(problems), file=sys.stderr)+ if not force:+ sys.exit("incomplete survey: not writing the snapshot (pass --force to merge anyway)")+ revision, torch_version = next(iter(stamps), ("?", "?"))+ return {"revision": revision, "torch": torch_version}+++def _inventory() -> set[str]:+ """Documented object names from the last docs build, used to turn operator names into cross-references."""+ inv = REPO / "docs" / "build" / "html" / "objects.inv"+ if not inv.exists():+ print(f"no {inv}: operators will not be cross-referenced; build the docs first", file=sys.stderr)+ return set()+ from sphinx.util.inventory import InventoryFile++ with open(inv, "rb") as fh:+ data = InventoryFile.load(fh, "", lambda base, loc: loc)+ return {name for objs in data.values() for name in objs}+++def main(onnx_glob: str, compile_glob: str, out_path: str, force: bool = False) -> None:+ measured = _validate([onnx_glob, compile_glob], force)+ onnx_rs = _load_results(onnx_glob)+ compile_rs = _load_results(compile_glob)+ inventory = _inventory()++ cases = []+ for r in onnx_rs.values():+ c = compile_rs.get(r["name"])+ group = r["group"]+ top = group.split(".")[0]+ package = PACKAGE_OF.get(top, f"kornia.{top}")+ section = group[len(top) + 1 :] if "." in group else ""+ if top == "augmentation3d":+ section = "3d" + ("." + section if section else "")+ section = re.sub(r"\.?random$", "", section)+ op, variant = _split_name(r["name"], group)+ onnx_s, onnx_d = _norm_onnx(r)+ exp_s, exp_d = _norm_export(c)+ comp_s, breaks, comp_d = _norm_compile(c)+ where = _first_frame(r.get("where")) if onnx_s == "fail" else ""+ if not where and c is not None and exp_s == "fail":+ where = _first_frame(c.get("export_where"))+ cases.append(+ {+ "name": r["name"],+ "package": package,+ "section": section,+ "operator": op,+ "variant": variant,+ "ref": _ref_by_name(package, op, inventory) or _public_ref((c or {}).get("qualname"), inventory),+ "note": r.get("note", ""),+ "onnx": onnx_s,+ "onnx_detail": onnx_d,+ "export": exp_s,+ "export_detail": exp_d,+ "compile": comp_s,+ "graph_breaks": breaks,+ "compile_detail": comp_d,+ "where": where,+ }+ )++ import onnx+ import onnxruntime+ import onnxscript+ import torch++ import kornia++ rev = subprocess.run(+ ["git", "rev-parse", "--short", "HEAD"], capture_output=True, text=True, cwd=REPO, check=False+ ).stdout.strip()+ if measured["revision"] not in ("?", rev):+ print(f"note: results were measured at {measured['revision']}, the checkout is at {rev}", file=sys.stderr)+ if measured["torch"] not in ("?", torch.__version__):+ print(f"note: measured with torch {measured['torch']}, running {torch.__version__}", file=sys.stderr)+ data = {+ "generated_at": dt.datetime.now(tz=dt.UTC).date().isoformat(),+ "revision": measured["revision"] if measured["revision"] != "?" else rev,+ "kornia": kornia.__version__,+ "torch": measured["torch"] if measured["torch"] != "?" else torch.__version__,+ "onnx": onnx.__version__,+ "onnxruntime": onnxruntime.__version__,+ "onnxscript": onnxscript.__version__,+ "python": platform.python_version(),+ "opset": 18,+ "device": "cpu",+ "cases": cases,+ }+ # the layout pre-commit's pretty-format-json expects, so a regenerated snapshot diffs cleanly+ Path(out_path).write_text(json.dumps(data, indent=2, sort_keys=True) + "\n")+ from collections import Counter++ print(+ len(cases),+ "onnx",+ dict(Counter(x["onnx"] for x in cases)),+ "export",+ dict(Counter(x["export"] for x in cases)),+ "compile",+ dict(Counter(x["compile"] for x in cases)),+ "refs",+ sum(1 for x in cases if x["ref"]),+ )+++if __name__ == "__main__":+ _args = [a for a in sys.argv[1:] if a != "--force"]+ if len(_args) != 3:+ sys.exit(__doc__)+ main(*_args, force="--force" in sys.argv)diff --git a/docs/export_support/probe_compile.py b/docs/export_support/probe_compile.pynew file mode 100644index 000000000..fd4281a83--- /dev/null+++ b/docs/export_support/probe_compile.py@@ -0,0 +1,244 @@+# LICENSE HEADER MANAGED BY add-license-header+#+# Copyright 2018 Kornia Team+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+#++"""torch.export / torch.compile probe over the survey cases (same registry files as the ONNX survey).++Usage: python probe_compile.py <cases_module> <out.json> [names...]++Per case records:+ export: ok | fail | eager-fail | skipped (torch.export.export, non-strict default)+ compile: ok | ok-breaks:N | ok-unverified | mismatch | fail | eager-fail | skipped+ (torch.compile default inductor backend, fullgraph=False; N = dynamo graph breaks)+plus the target's importable qualified name when it has one.+"""++from __future__ import annotations++import copy+import importlib+import json+import signal+import sys+import time+from typing import Any++import torch+import torch._dynamo+from harness import SEED, _kornia_frames, close, err_str, make_wrapper, prepare_resume, to_np+from torch import nn++torch.set_num_threads(4)+torch._dynamo.config.cache_size_limit = 64+torch._dynamo.config.suppress_errors = False+TIMEOUT = 420+++class Timeout(Exception):+ pass+++class Poisoned(Exception):+ """A previous case left the dispatcher unusable (PythonDispatcherTLS not set): restart the worker."""+++POISON_EXIT = 3+++def _alarm(signum, frame):+ raise Timeout(f"case exceeded {TIMEOUT}s")+++_HAS_ALARM = hasattr(signal, "SIGALRM") # POSIX only; on Windows the probes simply run without a timeout+if _HAS_ALARM:+ signal.signal(signal.SIGALRM, _alarm)+++def _set_alarm(seconds: int) -> None:+ if _HAS_ALARM:+ signal.alarm(seconds)+++def qualname(target: Any, method: str | None) -> str | None:+ obj = target+ if isinstance(target, nn.Module):+ obj = type(target)+ if method and hasattr(obj, method):+ obj = getattr(obj, method)+ mod = getattr(obj, "__module__", None) or ""+ qn = getattr(obj, "__qualname__", None) or getattr(obj, "__name__", None)+ if not mod.startswith("kornia") or not qn or "<lambda>" in qn or "<locals>" in qn:+ return None+ return f"{mod}.{qn}"+++def _compare(ref: list[torch.Tensor], out: list[torch.Tensor], c: dict[str, Any]) -> str | None:+ if len(out) != len(ref):+ return f"{len(out)} outputs vs {len(ref)}"+ bad = []+ for i, (a, b) in enumerate(zip(ref, out)):+ ok, why = close(to_np(a), to_np(b), c["atol"], c["rtol"])+ if not ok:+ bad.append(f"out{i}: {why}")+ return "; ".join(bad)[:400] if bad else None+++def _finite(out: list[torch.Tensor], ref: list[torch.Tensor]) -> str | None:+ if len(out) != len(ref):+ return f"{len(out)} outputs vs {len(ref)}"+ for i, (a, b) in enumerate(zip(ref, out)):+ if tuple(a.shape) != tuple(b.shape):+ return f"out{i}: shape {tuple(b.shape)} vs {tuple(a.shape)}"+ if b.is_floating_point() and not torch.isfinite(b).all():+ return f"out{i}: non-finite values"+ return None+++def run_case(c: dict[str, Any]) -> dict[str, Any]:+ rec: dict[str, Any] = {+ "name": c["name"],+ "group": c["group"],+ "note": c["note"],+ "tags": c["tags"],+ "qualname": qualname(c["target"], c["method"]),+ }+ if c["skip"]:+ rec.update(export="skipped", compile="skipped", skip=c["skip"])+ return rec+ t0 = time.time()+ try:+ target = c["target"]+ if isinstance(target, nn.Module):+ target.eval()+ wrap = make_wrapper(target, c["kwargs"], len(c["inputs"]), c["method"])+ inputs = [x.detach().clone() for x in c["inputs"]]+ torch.manual_seed(SEED)+ with torch.no_grad():+ ref = list(wrap(*copy.deepcopy(inputs)))+ except Exception as e:+ if "PythonDispatcherTLS" in str(e):+ raise Poisoned(rec["name"]) from e+ st = "no-tensor-output" if "NO_TENSOR_OUTPUT" in str(e) else "eager-fail"+ rec.update(export=st, compile=st, error=err_str(e))+ return rec++ # ---- torch.export+ _set_alarm(TIMEOUT)+ try:+ torch.manual_seed(SEED)+ with torch.no_grad():+ torch.export.export(wrap, tuple(copy.deepcopy(inputs)))+ rec["export"] = "ok"+ except BaseException as e:+ if isinstance(e, KeyboardInterrupt):+ raise+ rec.update(export="fail", export_error=err_str(e), export_where=_kornia_frames(e))+ finally:+ _set_alarm(0)+ rec["export_s"] = round(time.time() - t0, 1)++ # ---- torch.compile (dynamo capture stats, then inductor run)+ t1 = time.time()+ _set_alarm(TIMEOUT)+ try:+ torch._dynamo.reset()+ torch.manual_seed(SEED)+ with torch.no_grad():+ ex = torch._dynamo.explain(wrap)(*copy.deepcopy(inputs))+ breaks = int(ex.graph_break_count)+ rec["graph_breaks"] = breaks+ if breaks:+ rec["break_reasons"] = sorted({str(r.reason)[:160] for r in ex.break_reasons})[:5]+ torch._dynamo.reset()+ compiled = torch.compile(wrap)+ torch.manual_seed(SEED)+ with torch.no_grad():+ out = list(compiled(*copy.deepcopy(inputs)))+ if not c["check"]:+ why = _finite(out, ref)+ rec["compile"] = "ok-unverified" if why is None else "mismatch"+ else:+ why = _compare(ref, out, c)+ rec["compile"] = ("ok" if breaks == 0 else f"ok-breaks:{breaks}") if why is None else "mismatch"+ if why:+ rec["compile_error"] = why+ except BaseException as e:+ if isinstance(e, KeyboardInterrupt):+ raise+ rec.update(compile="fail", compile_error=err_str(e), compile_where=_kornia_frames(e))+ finally:+ _set_alarm(0)+ torch._dynamo.reset()+ rec["compile_s"] = round(time.time() - t1, 1)+ return rec+++def main() -> None:+ mod = importlib.import_module(sys.argv[1])+ out_json = sys.argv[2]+ only = sys.argv[3:] or None+ cases = mod.CASES+ done = prepare_resume(cases, out_json)+ results: list[dict[str, Any]] = []+ for c in cases:+ if only and not any(o == c["name"] or o == c["group"] or c["name"].startswith(o) for o in only):+ continue+ if c["name"] in done and not only:+ results.append(done[c["name"]])+ continue+ # write a crash marker first so a hard crash (segfault, OOM) is visible on resume+ json.dump(+ results + [{"name": c["name"], "group": c["group"], "export": "crashed", "compile": "crashed"}],+ open(out_json, "w"),+ indent=1,+ default=str,+ )+ try:+ rec = run_case(c)+ except Poisoned:+ # drop the crash marker, keep what is done and let the caller start a fresh interpreter+ kept = {r["name"]: r for r in done.values()} if only else {}+ kept.update({r["name"]: r for r in results})+ json.dump(list(kept.values()), open(out_json, "w"), indent=1, default=str)+ print(f"{c['name']}: interpreter poisoned by an earlier case, exiting for a restart", flush=True)+ sys.exit(POISON_EXIT)+ results.append(rec)+ json.dump(results, open(out_json, "w"), indent=1, default=str)+ print(+ f"{rec['name']:48s} export={rec.get('export'):8s} compile={rec.get('compile'):14s} "+ f"{rec.get('export_s', ''):>6} {rec.get('compile_s', ''):>6} "+ f"{rec.get('export_error') or rec.get('compile_error') or ''}"[:200],+ flush=True,+ )+ if only:+ merged = {r["name"]: r for r in done.values()}+ for r in results:+ merged[r["name"]] = r+ order = [c["name"] for c in cases]+ json.dump([merged[n] for n in order if n in merged], open(out_json, "w"), indent=1, default=str)+ from collections import Counter++ print(+ "SUMMARY export",+ dict(Counter(r.get("export") for r in results)),+ "compile",+ dict(Counter(str(r.get("compile")).split(":")[0] for r in results)),+ flush=True,+ )+++if __name__ == "__main__":+ main()diff --git a/docs/export_support/run.py b/docs/export_support/run.pynew file mode 100644index 000000000..b4b942e40--- /dev/null+++ b/docs/export_support/run.py@@ -0,0 +1,106 @@+# LICENSE HEADER MANAGED BY add-license-header+#+# Copyright 2018 Kornia Team+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+#++"""Regenerate the snapshot behind the ONNX / torch.compile / torch.export support page.++Usage (from the repository root, with the docs built once so cross-references resolve):++ python docs/export_support/run.py # everything: ~2 h on 8 cores, CPU only+ python docs/export_support/run.py aug misc # only these case groups+ python docs/export_support/run.py --merge-only # re-merge existing results into the JSON+ python docs/export_support/run.py --force # merge even if the results are incomplete++Each case group ``cases_<group>.py`` is probed twice, in parallel subprocesses: once for ONNX+(``harness.run_cases``) and once for torch.export + torch.compile (``probe_compile.py``). Results+land in ``results/`` next to this file (git-ignored) and are resumable: a rerun skips the cases that+already have a record, so a crashed worker can simply be started again. Each probe stamps an+``inventory_*.json`` with every case name and the kornia revision / torch version it measured;+records from another revision are not resumed, and the final merge refuses to write the snapshot+while a worker failed, a case has no record, or the groups disagree about what they measured+(``--force`` overrides). The merge writes ``docs/source/_data/export_support.json``, which is+committed and rendered by ``docs/generate_export_support.py`` at docs build time.+"""++from __future__ import annotations++import subprocess+import sys+from concurrent.futures import ThreadPoolExecutor+from pathlib import Path++HERE = Path(__file__).resolve().parent+REPO = HERE.parents[1]+RESULTS = HERE / "results"+SNAPSHOT = REPO / "docs" / "source" / "_data" / "export_support.json"+GROUPS = ["aug", "feature", "geomA", "geomB", "misc", "models"]+MAX_RESTARTS = 50+POISON_EXIT = 3 # probe_compile.POISON_EXIT: a case left the interpreter unusable, resume in a fresh one+++def _jobs(groups: list[str]) -> list[tuple[str, list[str]]]:+ jobs = []+ for g in groups:+ jobs.append((f"onnx:{g}", [sys.executable, f"cases_{g}.py", str(RESULTS / f"onnx_{g}.json")]))+ jobs.append(+ (f"compile:{g}", [sys.executable, "probe_compile.py", f"cases_{g}", str(RESULTS / f"compile_{g}.json")])+ )+ return jobs+++def _worker(label: str, cmd: list[str]) -> tuple[str, int]:+ """Run one probe process to completion, restarting it (it resumes) when a case poisoned the interpreter."""+ log_path = RESULTS / f"{label.replace(':', '_')}.log"+ print(f"started {label}", flush=True)+ with open(log_path, "a") as log:+ for _restart in range(MAX_RESTARTS):+ rc = subprocess.run(cmd, cwd=HERE, stdout=log, stderr=subprocess.STDOUT, check=False).returncode+ if rc != POISON_EXIT:+ break+ print(f"restarting {label}: a case left the interpreter unusable", flush=True)+ print(f"finished {label} (exit {rc})", flush=True)+ return label, rc+++def main(argv: list[str]) -> int:+ merge_only = "--merge-only" in argv+ force = "--force" in argv+ groups = [a for a in argv if not a.startswith("--")] or GROUPS+ unknown = sorted(set(groups) - set(GROUPS))+ if unknown:+ sys.exit(f"unknown case group(s) {unknown}; choose from {GROUPS}")+ RESULTS.mkdir(exist_ok=True)++ if not merge_only:+ with ThreadPoolExecutor(max_workers=len(groups) * 2) as pool:+ failed = [label for label, rc in pool.map(lambda job: _worker(*job), _jobs(groups)) if rc != 0]+ if failed:+ print(+ f"workers exited abnormally: {failed}; rerun to resume the cases they did not record"+ + ("" if force else " (not merging: the snapshot would be incomplete)"),+ file=sys.stderr,+ )+ if not force:+ return 1++ cmd = [sys.executable, "merge.py", str(RESULTS / "onnx_*.json"), str(RESULTS / "compile_*.json"), str(SNAPSHOT)]+ if force:+ cmd.append("--force")+ return subprocess.run(cmd, cwd=HERE, check=False).returncode+++if __name__ == "__main__":+ sys.exit(main(sys.argv[1:]))diff --git a/docs/generate_export_support.py b/docs/generate_export_support.pynew file mode 100644index 000000000..92cf71a82--- /dev/null+++ b/docs/generate_export_support.py@@ -0,0 +1,461 @@+# LICENSE HEADER MANAGED BY add-license-header+#+# Copyright 2018 Kornia Team+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+#++"""Render docs/source/get-started/export-support.rst from docs/source/_data/export_support.json.++The JSON is a committed snapshot of the graph-capture survey in ``docs/export_support/``: every public+operator, model and augmentation probed with the dynamo ONNX exporter, ``torch.export`` and+``torch.compile``. Refresh it with ``python docs/export_support/run.py`` (see that package's README)+and commit the result; this module turns it into the support page at docs-build time, the same way+``generate_adoption.py`` renders the Adoption page.+"""++from __future__ import annotations++import json+from collections import Counter, defaultdict+from pathlib import Path++REPO = Path(__file__).resolve().parents[1]+DATA = REPO / "docs" / "source" / "_data" / "export_support.json"+OUT = REPO / "docs" / "source" / "get-started" / "export-support.rst"++# Display order of the major packages; anything else follows alphabetically.+PACKAGE_ORDER = [+ "kornia.color",+ "kornia.enhance",+ "kornia.filters",+ "kornia.morphology",+ "kornia.geometry",+ "kornia.feature",+ "kornia.augmentation",+ "kornia.losses",+ "kornia.metrics",+ "kornia.contrib",+ "kornia.models",+ "kornia.image",+ "kornia.sensors",+ "kornia.utils",+ "kornia.tracking",+]++# Section headings inside a package, keyed by the survey's group suffix.+SECTION_TITLES = {+ ("kornia.augmentation", ""): "2D augmentations",+ ("kornia.augmentation", "3d"): "3D augmentations",+ ("kornia.augmentation", "container"): "Containers",+ ("kornia.augmentation", "mix"): "Mix augmentations",+ ("kornia.augmentation", "auto"): "Auto-augment policies",+ ("kornia.contrib", ""): "Operators",+ ("kornia.contrib", "patches"): "Tensor patches",+ ("kornia.contrib", "wrappers"): "Detector and model wrappers",+ ("kornia.feature", "detectors"): "Detectors",+ ("kornia.feature", "descriptors"): "Descriptors",+ ("kornia.feature", "laf"): "Local affine frames",+ ("kornia.feature", "matching"): "Matching",+ ("kornia.feature", "models"): "Learned detectors and matchers",+ ("kornia.feature", "orientation_affine"): "Orientation and affine shape",+ ("kornia.feature", "responses"): "Corner and blob responses",+ ("kornia.geometry", "bbox"): "Bounding boxes (bbox)",+ ("kornia.geometry", "boxes"): "Boxes",+ ("kornia.geometry", "calibration"): "Calibration",+ ("kornia.geometry", "camera"): "Camera",+ ("kornia.geometry", "conversions"): "Conversions",+ ("kornia.geometry", "depth"): "Depth",+ ("kornia.geometry", "epipolar"): "Epipolar geometry",+ ("kornia.geometry", "grid"): "Grid",+ ("kornia.geometry", "homography"): "Homography",+ ("kornia.geometry", "keypoints"): "Keypoints",+ ("kornia.geometry", "liegroup"): "Lie groups",+ ("kornia.geometry", "line"): "Lines",+ ("kornia.geometry", "linalg"): "Linear algebra",+ ("kornia.geometry", "plane"): "Planes",+ ("kornia.geometry", "pointcloud"): "Point clouds",+ ("kornia.geometry", "pose"): "Pose",+ ("kornia.geometry", "quaternion"): "Quaternion",+ ("kornia.geometry", "ransac"): "RANSAC",+ ("kornia.geometry", "ray"): "Rays",+ ("kornia.geometry", "solvers"): "Polynomial solvers",+ ("kornia.geometry", "subpix"): "Sub-pixel",+ ("kornia.geometry", "transform"): "Transforms",+ ("kornia.geometry", "vector"): "Vectors",+ ("kornia.models", "base"): "Base classes",+ ("kornia.models", "processors"): "Pre- and post-processors",+ ("kornia.sensors", "camera"): "Camera models",+}++# Status -> (docutils role, cell text, meaning shown in the legend).+STATUS = {+ "ok": ("compat-ok", "yes", "captured, and the result matches eager execution"),+ "ok-breaks": (+ "compat-ok-breaks",+ "yes, graph breaks",+ "compiles and matches eager, but dynamo falls back to Python at one or more graph breaks",+ ),+ "ok-unverified": (+ "compat-ok-random",+ "yes (random)",+ "captured and ran; a random operator, so only output shape and finiteness are compared",+ ),+ "mismatch": ("compat-mismatch", "mismatch", "captured and ran, but the result differs from eager execution"),+ "fail": ("compat-fail", "no", "capture or conversion failed; the Details column says why"),+ "n/a": (+ "compat-na",+ "n/a",+ "not a tensor graph (file I/O, enums, Python containers, stubs) or not runnable with the probed inputs",+ ),+}++SUPPORTED = {"ok", "ok-breaks", "ok-unverified"}+++def _applicable(case: dict) -> bool:+ """False for the registry entries that are not tensor graphs at all (file I/O, enums, Python containers)."""+ return any(case[key] != "n/a" for key in ("onnx", "export", "compile"))+++def load_data() -> dict:+ data = json.loads(DATA.read_text())+ data["cases"] = [c for c in data["cases"] if _applicable(c)]+ return data+++def _slug(text: str) -> str:+ return "".join(ch if ch.isalnum() else "-" for ch in text.lower()).strip("-")+++def _cell(status: str, breaks: int = 0) -> str:+ role, text, _ = STATUS[status]+ if status == "ok-breaks" and breaks:+ text = f"yes, {breaks} break{'s' if breaks != 1 else ''}"+ return f":{role}:`{text}`"+++def _escape(text: str) -> str:+ # Table cells are one line of inline RST: neutralise the markup characters an error message may carry.+ text = " ".join(text.split())+ return text.replace("\\", "\\\\").replace("`", "'").replace("*", "\\*").replace("|", "\\|").replace("_", "\\_")+++def _operator_cell(case: dict) -> str:+ op = case["operator"] or case["name"]+ ref = case.get("ref")+ if ref:+ # ``~`` shows only the last component; the full path is in the link target.+ label = f":py:obj:`{op} <{ref}>`"+ else:+ label = f"``{op}``"+ if case.get("variant") and case["operator"]:+ label += f" ``[{case['variant']}]``"+ return label+++def _details(case: dict) -> str:+ # columns that share one cause are named together: "ONNX, export, compile: ..."+ by_detail: dict[str, list[str]] = {}+ for column, key in (("ONNX", "onnx"), ("export", "export"), ("compile", "compile")):+ detail = case.get(f"{key}_detail", "")+ if detail:+ by_detail.setdefault(detail, []).append(column)+ parts = [f"**{', '.join(columns)}:** {_escape(detail)}" for detail, columns in by_detail.items()]+ if case.get("where"):+ parts.append(f"``{case['where']}``")+ return " Β· ".join(parts)+++def _table(cases: list[dict]) -> str:+ rows = [+ " * - Operator",+ " - ONNX",+ # U+200B lets the header break after "torch." when the column is narrow+ " - torch.\u200bexport",+ " - torch.\u200bcompile",+ " - Details",+ ]+ for c in cases:+ rows += [+ f" * - {_operator_cell(c)}",+ f" - {_cell(c['onnx'])}",+ f" - {_cell(c['export'])}",+ f" - {_cell(c['compile'], c.get('graph_breaks', 0))}",+ f" - {_details(c) or ' '}",+ ]+ return "\n".join(rows)+++def _counts(cases: list[dict]) -> dict[str, tuple[int, int]]:+ """Per column: (supported, applicable) where applicable excludes n/a rows."""+ out = {}+ for key in ("onnx", "export", "compile"):+ applicable = [c for c in cases if c[key] != "n/a"]+ out[key] = (sum(1 for c in applicable if c[key] in SUPPORTED), len(applicable))+ return out+++def _operator_counts(cases: list[dict]) -> dict[str, int]:+ """Operators rather than configurations: how many distinct callables, and how many export to ONNX.++ An operator counts as exporting when at least one of its probed configurations does, so an+ augmentation whose ``[random]`` variant fails but whose deterministic variant passes is counted+ as supported -- that variant is what a user who wants an ONNX file would export.+ """+ ops: dict[tuple[str, str], bool] = {}+ for c in cases:+ key = (c["package"], c["operator"])+ ops[key] = ops.get(key, False) or c["onnx"] in SUPPORTED+ return {"operators": len(ops), "onnx_operators": sum(ops.values())}+++def _ratio(pair: tuple[int, int]) -> str:+ good, total = pair+ return f"{good} / {total}" if total else "β"+++def _sort_key(case: dict) -> tuple:+ return (case["operator"].lower(), case.get("variant", ""))+++def _package_sections(cases: list[dict]) -> list[tuple[str, str, list[dict]]]:+ """[(section key, title, cases)] for one package, tables in a stable order."""+ by_section: dict[str, list[dict]] = defaultdict(list)+ for c in cases:+ by_section[c.get("section", "")].append(c)+ package = cases[0]["package"]+ out = []+ for key in sorted(by_section, key=lambda k: (k != "", k)):+ title = SECTION_TITLES.get((package, key), key.replace("_", " ").capitalize() or "Operators")+ out.append((key, title, sorted(by_section[key], key=_sort_key)))+ return out+++def _summary_table(packages: list[str], by_package: dict[str, list[dict]]) -> str:+ rows = [+ " * - Package",+ " - Probed",+ " - ONNX",+ " - torch.export",+ " - torch.compile",+ ]+ for pkg in packages:+ cs = by_package[pkg]+ n = _counts(cs)+ rows += [+ f" * - :ref:`{pkg} <export-support-{_slug(pkg)}>`",+ f" - {len(cs)}",+ f" - {_ratio(n['onnx'])}",+ f" - {_ratio(n['export'])}",+ f" - {_ratio(n['compile'])}",+ ]+ return "\n".join(rows)+++def _legend(cases: list[dict]) -> str:+ used = {c[key] for c in cases for key in ("onnx", "export", "compile")}+ rows = [" * - Cell", " - Meaning"]+ for status, (role, text, meaning) in STATUS.items():+ if status in used:+ rows += [f" * - :{role}:`{text}`", f" - {meaning}"]+ return "\n".join(rows)+++def render_page(data: dict) -> str:+ cases = data["cases"]+ by_package: dict[str, list[dict]] = defaultdict(list)+ for c in cases:+ by_package[c["package"]].append(c)+ packages = [p for p in PACKAGE_ORDER if p in by_package] + sorted(p for p in by_package if p not in PACKAGE_ORDER)+ total = _counts(cases)+ roles = "\n".join(f".. role:: {role}" for role, _, _ in STATUS.values())+ n_ok_all = sum(+ 1 for c in cases if c["onnx"] in SUPPORTED and c["export"] in SUPPORTED and c["compile"] in SUPPORTED+ )+ ops = _operator_counts(cases)+ description = (+ f"Which Kornia operators export to ONNX, capture with torch.export and run under torch.compile: "+ f"{len(cases)} probed configurations across {len(packages)} packages, with the reason for every failure."+ )++ sections = []+ for pkg in packages:+ cs = by_package[pkg]+ n = _counts(cs)+ n_fail = Counter()+ for c in cs:+ for key in ("onnx", "export", "compile"):+ if c[key] in ("fail", "mismatch"):+ n_fail[key] += 1+ lead = (+ f"{len(cs)} probed configurations. ONNX {_ratio(n['onnx'])}, torch.export {_ratio(n['export'])}, "+ f"torch.compile {_ratio(n['compile'])} (supported / probed)."+ )+ block = [f".. _export-support-{_slug(pkg)}:", "", pkg, "-" * len(pkg), "", lead, ""]+ parts = _package_sections(cs)+ for _key, title, section_cases in parts:+ if len(parts) > 1:+ block += [title, "^" * len(title), ""]+ block += [+ ".. list-table::",+ " :header-rows: 1",+ " :widths: auto",+ " :class: kornia-compat-table",+ "",+ _table(section_cases),+ "",+ ]+ sections.append("\n".join(block))++ return f"""\+.. This page is generated at build time by docs/generate_export_support.py from+ docs/source/_data/export_support.json. Edit those, not this file.++{roles}++.. _export-support:++ONNX, torch.compile and torch.export support+============================================++.. meta::+ :description: {description}++Every public operator, model and augmentation in kornia was run through the three graph-capture+paths PyTorch offers, and this page lists the result for each one, package by package, with the+cause of every failure. Use the search box to find an operator, or the summary table to jump to a+package.++.. grid:: 1 3 3 3+ :gutter: 3+ :class-container: kornia-cards kornia-compat-cards++ .. grid-item-card:: ONNX export+ :class-card: kornia-compat-card++ .. rst-class:: kornia-compat-count++ {_ratio(total["onnx"])}++ ``torch.onnx.export(dynamo=True)`` at opset {data.get("opset", 18)}, checked with ``onnx.checker`` and run in+ onnxruntime against eager++ .. grid-item-card:: torch.export+ :class-card: kornia-compat-card++ .. rst-class:: kornia-compat-count++ {_ratio(total["export"])}++ ``torch.export.export`` captures the whole program as one graph++ .. grid-item-card:: torch.compile+ :class-card: kornia-compat-card++ .. rst-class:: kornia-compat-count++ {_ratio(total["compile"])}++ ``torch.compile`` with the default inductor backend, compared with eager; graph breaks counted++Each figure is *supported / probed*; {n_ok_all} of the {len(cases)} probed configurations pass+all three paths; the configurations cover {ops["operators"]} distinct operators, of which+{ops["onnx_operators"]} export to ONNX in at least one configuration. Every operator is captured+with concrete input shapes, so a failure is never about an unknown input size: the causes in the+Details column are missing lowerings, or Python code that reads tensor *values* (an index, a loop+count, an ``if``) while the graph is being traced.++**How this was measured.** Snapshot taken on {data.get("generated_at", "")} with kornia+{data.get("kornia", "")}, torch {data.get("torch", "")}, onnx {data.get("onnx", "")}, onnxruntime+{data.get("onnxruntime", "")} and onnxscript {data.get("onnxscript", "")} on CPU (Python+{data.get("python", "")}). A *configuration* is one public callable plus one concrete set of inputs+and keyword arguments; operators with several code paths (``padding_mode``, ``align_corners``, a+batch of one versus several, random versus fixed parameters) appear once per path, the path named+in brackets after the operator. Augmentations are probed twice: with their sampled parameters fed+in as graph inputs (a deterministic graph) and with the sampling inside the graph (``[random]``).+Registry entries that are not tensor graphs at all (file I/O, enums, Python containers, stubs) are+not listed.+The survey lives in ``docs/export_support/`` and this page is rendered from its committed result,+so the figures follow the library rather than a hand-maintained list.++Legend+------++.. list-table::+ :header-rows: 1+ :widths: 20 80+ :class: kornia-compat-legend++{_legend(cases)}++A failure on this page is a fact about a specific torch, exporter and kornia version, not a+promise: most *no* entries are missing ONNX lowerings upstream (``torch.linalg.svd``, ``solve``,+``lu_factor``, ``eigh``, ``qr``, ``histc``), data-dependent output sizes (matchers that return a+variable number of pairs, detectors that keep the top-k responses above a threshold, NMS), or+Python control flow that reads tensor values. See :doc:`onnx` for how to chain exported graphs and+:doc:`gpu-acceleration` for ``torch.compile`` in practice.++.. raw:: html++ <div class="kornia-compat-controls" hidden>+ <label class="kornia-compat-search">+ <span class="visually-hidden">Find an operator</span>+ <input type="search" placeholder="Find an operator, e.g. warp_perspective" autocomplete="off">+ </label>+ <label class="kornia-compat-filter">+ Show+ <select>+ <option value="all">every row</option>+ <option value="any-fail">rows with a failure or mismatch</option>+ <option value="onnx-fail">ONNX failures</option>+ <option value="export-fail">torch.export failures</option>+ <option value="compile-fail">torch.compile failures</option>+ <option value="compile-breaks">torch.compile graph breaks</option>+ <option value="all-ok">rows that pass all three</option>+ </select>+ </label>+ <span class="kornia-compat-status" aria-live="polite"></span>+ </div>++Summary by package+------------------++.. list-table::+ :header-rows: 1+ :widths: 40 15 15 15 15+ :class: kornia-compat-summary++{_summary_table(packages, by_package)}++{chr(10).join(sections)}+"""+++def main() -> dict[str, int | str]:+ data = load_data()+ OUT.write_text(render_page(data))+ cases = data["cases"]+ n = _counts(cases)+ return {+ "cases": len(cases),+ "onnx": n["onnx"][0],+ "export": n["export"][0],+ "compile": n["compile"][0],+ "generated_at": str(data.get("generated_at", "")),+ **_operator_counts(cases),+ }+++if __name__ == "__main__":+ print(main())diff --git a/docs/source/_data/export_support.json b/docs/source/_data/export_support.jsonnew file mode 100644index 000000000..e8d984799--- /dev/null+++ b/docs/source/_data/export_support.json@@ -0,0 +1,22811 @@+{+ "cases": [+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "Normalize",+ "note": "no random params; aug(img) direct",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Normalize",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.Normalize",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "Normalize[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "Normalize",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.Normalize",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "Denormalize",+ "note": "no random params; aug(img) direct",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Denormalize",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.Denormalize",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "Denormalize[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "Denormalize",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.Denormalize",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "Resize",+ "note": "size (24,36) baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Resize",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.Resize",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "Resize[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "Resize",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.Resize",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "Resize[antialias]",+ "note": "antialias=True",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Resize",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.Resize",+ "section": "",+ "variant": "antialias",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "LongestMaxSize",+ "note": "max_size=60 baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "LongestMaxSize",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.LongestMaxSize",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "LongestMaxSize[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "LongestMaxSize",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.LongestMaxSize",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "SmallestMaxSize",+ "note": "max_size=24 baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "SmallestMaxSize",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.SmallestMaxSize",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "SmallestMaxSize[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "SmallestMaxSize",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.SmallestMaxSize",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "LongestMaxSize[const-size]",+ "note": "output_size param held constant (not a graph input); params fed as inputs: ['src', 'dst', 'input_size']",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "LongestMaxSize",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.LongestMaxSize",+ "section": "",+ "variant": "const-size",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "SmallestMaxSize[const-size]",+ "note": "output_size param held constant (not a graph input); params fed as inputs: ['src', 'dst', 'input_size']",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "SmallestMaxSize",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.SmallestMaxSize",+ "section": "",+ "variant": "const-size",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "PadTo",+ "note": "size (40,48) baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "PadTo",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.PadTo",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "PadTo[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "PadTo",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.PadTo",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "PadTo[reflect]",+ "note": "pad_mode=reflect",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "PadTo",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.PadTo",+ "section": "",+ "variant": "reflect",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomRotation90",+ "note": "params fed as inputs: ['times']",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RandomRotation90",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomRotation90",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomRotation90[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomRotation90",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomRotation90",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomShear",+ "note": "params fed as inputs: ['center', 'shear_x', 'shear_y']",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RandomShear",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomShear",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomShear[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomShear",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomShear",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomTranslate",+ "note": "params fed as inputs: ['translate_x', 'translate_y']",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RandomTranslate",+ "package": "kornia.augmentation",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomTranslate[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomTranslate",+ "package": "kornia.augmentation",+ "ref": "",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomChannelDropout[b1]",+ "note": "batch 1; params fed as inputs: ['batch_idx', 'channel_idx']",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RandomChannelDropout",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomChannelDropout",+ "section": "",+ "variant": "b1",+ "where": ""+ },+ {+ "compile": "fail",+ "compile_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 0,+ "name": "ColorJiggle[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "ColorJiggle",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.ColorJiggle",+ "section": "",+ "variant": "random",+ "where": "kornia/augmentation/_2d/intensity/color_jiggle.py:117"+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 5,+ "name": "ColorJitter[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "ColorJitter",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.ColorJitter",+ "section": "",+ "variant": "random",+ "where": "kornia/augmentation/_2d/intensity/color_jitter.py:157"+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomAffine[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomAffine",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomAffine",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomBoxBlur[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomBoxBlur",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomBoxBlur",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomBrightness[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomBrightness",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomBrightness",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomContrast[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomContrast",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomContrast",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomChannelDropout[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomChannelDropout",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomChannelDropout",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomChannelShuffle[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomChannelShuffle",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomChannelShuffle",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomElasticTransform[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomElasticTransform",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomElasticTransform",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomEqualize[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomEqualize",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomEqualize",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomErasing[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomErasing",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomErasing",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomFisheye[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomFisheye",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomFisheye",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomGamma[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomGamma",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomGamma",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomGaussianBlur[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomGaussianBlur",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomGaussianBlur",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomGaussianIllumination[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomGaussianIllumination",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomGaussianIllumination",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomGaussianNoise[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomGaussianNoise",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomGaussianNoise",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomGrayscale[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomGrayscale",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomGrayscale",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomHue[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomHue",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomHue",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomHorizontalFlip[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomHorizontalFlip",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomHorizontalFlip",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomVerticalFlip[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomVerticalFlip",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomVerticalFlip",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomInvert[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomInvert",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomInvert",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomJPEG[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomJPEG",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomJPEG",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomLinearCornerIllumination[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomLinearCornerIllumination",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomLinearCornerIllumination",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomLinearIllumination[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomLinearIllumination",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomLinearIllumination",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomMedianBlur[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomMedianBlur",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomMedianBlur",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomMotionBlur[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomMotionBlur",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomMotionBlur",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomPerspective[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomPerspective",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomPerspective",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomPlanckianJitter[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomPlanckianJitter",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomPlanckianJitter",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomPlasmaShadow[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomPlasmaShadow",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomPlasmaShadow",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomPlasmaBrightness[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomPlasmaBrightness",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomPlasmaBrightness",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomPlasmaContrast[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomPlasmaContrast",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomPlasmaContrast",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomPosterize[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomPosterize",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomPosterize",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomRotation[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomRotation",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomRotation",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomSaltAndPepperNoise[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomSaltAndPepperNoise",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomSaltAndPepperNoise",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomSaturation[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomSaturation",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomSaturation",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomSharpness[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomSharpness",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomSharpness",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomSolarize[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomSolarize",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomSolarize",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomThinPlateSpline[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.solve",+ "operator": "RandomThinPlateSpline",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomThinPlateSpline",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomCrop[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomCrop",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomCrop",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomResizedCrop[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomResizedCrop",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomResizedCrop",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "CenterCrop[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "CenterCrop",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.CenterCrop",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 7,+ "name": "RandomRain[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "RandomRain",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomRain",+ "section": "",+ "variant": "random",+ "where": "kornia/augmentation/random_generator/_2d/random_rain.py:83"+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 5,+ "name": "RandomSnow[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomSnow",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomSnow",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomRGBShift[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomRGBShift",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomRGBShift",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomAutoContrast[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomAutoContrast",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomAutoContrast",+ "section": "",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 3,+ "name": "RandomClahe[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "RandomClahe",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomClahe",+ "section": "",+ "variant": "random",+ "where": "kornia/augmentation/_2d/intensity/clahe.py:87"+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 11,+ "name": "RandomDissolving[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "RandomDissolving",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomDissolving",+ "section": "",+ "variant": "random",+ "where": "kornia/filters/dissolving.py:45"+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "ColorJitter[fixed order][random]",+ "note": "order=(0, 1, 2, 3): the per-call random operation order is the only export blocker",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "ColorJitter",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.ColorJitter",+ "section": "",+ "variant": "fixed order, random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomHorizontalFlip[p=0.5][random]",+ "note": "default p=0.5: per-sample batch_prob gate live in graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomHorizontalFlip",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomHorizontalFlip",+ "section": "",+ "variant": "p=0.5, random",+ "where": ""+ },+ {+ "compile": "fail",+ "compile_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 0,+ "name": "ColorJiggle[p=0.5][random]",+ "note": "default p=0.5: per-sample batch_prob gate live in graph",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "ColorJiggle",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.ColorJiggle",+ "section": "",+ "variant": "p=0.5, random",+ "where": "kornia/augmentation/_2d/intensity/color_jiggle.py:117"+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomAffine[p=0.5][random]",+ "note": "default p=0.5: per-sample batch_prob gate live in graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomAffine",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomAffine",+ "section": "",+ "variant": "p=0.5, random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomGaussianBlur[p=0.5][random]",+ "note": "default p=0.5: per-sample batch_prob gate live in graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomGaussianBlur",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomGaussianBlur",+ "section": "",+ "variant": "p=0.5, random",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 5,+ "name": "RandomCrop[p=0.5][random]",+ "note": "default p=0.5: per-sample batch_prob gate live in graph",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "RandomCrop",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomCrop",+ "section": "",+ "variant": "p=0.5, random",+ "where": "kornia/augmentation/base.py:361"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomAffine3D",+ "note": "params fed as inputs: ['translations', 'center', 'scale', 'angles', 'sxy', 'sxz', 'syx', 'syz', 'szx', 'szy']",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RandomAffine3D",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomAffine3D",+ "section": "3d",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomAffine3D[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomAffine3D",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomAffine3D",+ "section": "3d",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomCrop3D",+ "note": "size (6,12,12) baked; params fed as inputs: ['src', 'dst']",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.solve",+ "operator": "RandomCrop3D",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomCrop3D",+ "section": "3d",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomCrop3D[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.solve",+ "operator": "RandomCrop3D",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomCrop3D",+ "section": "3d",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomRotation3D",+ "note": "params fed as inputs: ['yaw', 'pitch', 'roll']",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RandomRotation3D",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomRotation3D",+ "section": "3d",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomRotation3D[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomRotation3D",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomRotation3D",+ "section": "3d",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomPerspective3D",+ "note": "params fed as inputs: ['start_points', 'end_points']",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.solve",+ "operator": "RandomPerspective3D",+ "package": "kornia.augmentation",+ "ref": "",+ "section": "3d",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomPerspective3D[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.solve",+ "operator": "RandomPerspective3D",+ "package": "kornia.augmentation",+ "ref": "",+ "section": "3d",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomMotionBlur3D",+ "note": "params fed as inputs: ['ksize_factor', 'angle_factor', 'direction_factor']",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RandomMotionBlur3D",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomMotionBlur3D",+ "section": "3d",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomMotionBlur3D[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomMotionBlur3D",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomMotionBlur3D",+ "section": "3d",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomEqualize3D",+ "note": "no tensor params (only batch_prob/shape, constant)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RandomEqualize3D",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomEqualize3D",+ "section": "3d",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomEqualize3D[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomEqualize3D",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomEqualize3D",+ "section": "3d",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomDepthicalFlip3D",+ "note": "no tensor params (only batch_prob/shape, constant)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RandomDepthicalFlip3D",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomDepthicalFlip3D",+ "section": "3d",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomDepthicalFlip3D[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomDepthicalFlip3D",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomDepthicalFlip3D",+ "section": "3d",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomHorizontalFlip3D",+ "note": "no tensor params (only batch_prob/shape, constant)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RandomHorizontalFlip3D",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomHorizontalFlip3D",+ "section": "3d",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomHorizontalFlip3D[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomHorizontalFlip3D",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomHorizontalFlip3D",+ "section": "3d",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomVerticalFlip3D",+ "note": "no tensor params (only batch_prob/shape, constant)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RandomVerticalFlip3D",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomVerticalFlip3D",+ "section": "3d",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandomVerticalFlip3D[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "RandomVerticalFlip3D",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomVerticalFlip3D",+ "section": "3d",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "CenterCrop3D",+ "note": "size baked",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.solve",+ "operator": "CenterCrop3D",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.CenterCrop3D",+ "section": "3d",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "CenterCrop3D[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.solve",+ "operator": "CenterCrop3D",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.CenterCrop3D",+ "section": "3d",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "4 graph breaks: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 4,+ "name": "RandomTransplantation3D",+ "note": "inputs (volume, int mask); no tensor params (only batch_prob/shape, constant)",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "RandomTransplantation3D",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomTransplantation3D",+ "section": "3d",+ "variant": "",+ "where": "kornia/augmentation/_2d/mix/transplantation.py:261"+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 5,+ "name": "RandomTransplantation3D[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "RandomTransplantation3D",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomTransplantation3D",+ "section": "3d",+ "variant": "random",+ "where": "kornia/augmentation/_2d/mix/transplantation.py:261"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "2 graph breaks: Failed to trace builtin operator\n Explanation: Dynamo does not know how to trace builtin operator `bool` with argument types ['Tensor'] (has_kwargs False)\n Hi",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 2,+ "name": "RandomMixUpV2",+ "note": "inputs (image, label); params fed as inputs: ['mixup_pairs', 'mixup_lambdas']",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "RandomMixUpV2",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomMixUpV2",+ "section": "mix",+ "variant": "",+ "where": "kornia/augmentation/_2d/mix/base.py:100"+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 3,+ "name": "RandomMixUpV2[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "RandomMixUpV2",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomMixUpV2",+ "section": "mix",+ "variant": "random",+ "where": "kornia/augmentation/_2d/mix/base.py:100"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "3 graph breaks: Failed to trace builtin operator\n Explanation: Dynamo does not know how to trace builtin operator `bool` with argument types ['Tensor'] (has_kwargs False)\n Hi",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 3,+ "name": "RandomCutMixV2",+ "note": "inputs (image, label); params fed as inputs: ['mix_pairs', 'crop_src', 'image_shape']",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "RandomCutMixV2",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomCutMixV2",+ "section": "mix",+ "variant": "",+ "where": "kornia/augmentation/_2d/mix/base.py:100"+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 4,+ "name": "RandomCutMixV2[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "RandomCutMixV2",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomCutMixV2",+ "section": "mix",+ "variant": "random",+ "where": "kornia/augmentation/_2d/mix/base.py:100"+ },+ {+ "compile": "mismatch",+ "compile_detail": "runs, but the result differs from eager: out0: max abs diff 9.519e-01 at 7672/7680 elements",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 2,+ "name": "RandomMosaic",+ "note": "output_size (32,40) baked; data_keys=[input]; params fed as inputs: ['permutation', 'src', 'dst', 'batch_shapes']",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "RandomMosaic",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomMosaic",+ "section": "mix",+ "variant": "",+ "where": "kornia/augmentation/_2d/mix/base.py:100"+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 3,+ "name": "RandomMosaic[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "RandomMosaic",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomMosaic",+ "section": "mix",+ "variant": "random",+ "where": "kornia/augmentation/_2d/mix/base.py:100"+ },+ {+ "compile": "mismatch",+ "compile_detail": "runs, but the result differs from eager: out0: max abs diff 9.519e-01 at 7672/7680 elements",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 16,+ "name": "RandomMosaic[bbox]",+ "note": "data_keys=[input,bbox_xyxy]; params fed as inputs: ['permutation', 'src', 'dst', 'batch_shapes']",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "RandomMosaic",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomMosaic",+ "section": "mix",+ "variant": "bbox",+ "where": "kornia/augmentation/_2d/mix/base.py:100"+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 17,+ "name": "RandomMosaic[bbox][random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "RandomMosaic",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomMosaic",+ "section": "mix",+ "variant": "bbox, random",+ "where": "kornia/augmentation/_2d/mix/base.py:100"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "2 graph breaks: Failed to trace builtin operator\n Explanation: Dynamo does not know how to trace builtin operator `bool` with argument types ['Tensor'] (has_kwargs False)\n Hi",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 2,+ "name": "RandomJigsaw",+ "note": "grid (2,2) baked; params fed as inputs: ['permutation']",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "RandomJigsaw",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomJigsaw",+ "section": "mix",+ "variant": "",+ "where": "kornia/augmentation/_2d/mix/base.py:100"+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 6,+ "name": "RandomJigsaw[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "RandomJigsaw",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomJigsaw",+ "section": "mix",+ "variant": "random",+ "where": "kornia/augmentation/random_generator/utils.py:27"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "4 graph breaks: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 4,+ "name": "RandomTransplantation",+ "note": "inputs (image, int mask); no tensor params (only batch_prob/shape, constant)",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "RandomTransplantation",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomTransplantation",+ "section": "mix",+ "variant": "",+ "where": "kornia/augmentation/_2d/mix/transplantation.py:261"+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 5,+ "name": "RandomTransplantation[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "RandomTransplantation",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.RandomTransplantation",+ "section": "mix",+ "variant": "random",+ "where": "kornia/augmentation/_2d/mix/transplantation.py:261"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "2 graph breaks: Failed to trace builtin operator\n Explanation: Dynamo does not know how to trace builtin operator `bool` with argument types ['Tensor'] (has_kwargs False)\n Hi",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 2,+ "name": "PatchMix",+ "note": "patch_size=8 baked; params fed as inputs: ['mix_pairs', 'patch_coords', 'lam']",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "PatchMix",+ "package": "kornia.augmentation",+ "ref": "",+ "section": "mix",+ "variant": "",+ "where": "kornia/augmentation/_2d/mix/base.py:100"+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 3,+ "name": "PatchMix[random]",+ "note": "aug(img) in train mode, randomness inside the graph",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "PatchMix",+ "package": "kornia.augmentation",+ "ref": "",+ "section": "mix",+ "variant": "random",+ "where": "kornia/augmentation/_2d/mix/base.py:100"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "4 graph breaks",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 4,+ "name": "AugmentationSequential",+ "note": "HFlip(p=1)+RandomBrightness(p=1)+RandomAffine(p=1); params=seq._params held CONSTANT (only image is a live input)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "AugmentationSequential",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.container.AugmentationSequential",+ "section": "container",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 7,+ "name": "AugmentationSequential[random]",+ "note": "container called directly; parameters sampled inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "AugmentationSequential",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.container.AugmentationSequential",+ "section": "container",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "fail",+ "compile_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 0,+ "name": "AugmentationSequential[ColorJiggle]",+ "note": "same with a ColorJiggle child (expected to inherit ColorJiggle's order.tolist() blocker); params=seq._params held CONSTANT (only image is a live input)",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "AugmentationSequential",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.container.AugmentationSequential",+ "section": "container",+ "variant": "ColorJiggle",+ "where": "kornia/augmentation/_2d/intensity/color_jiggle.py:117"+ },+ {+ "compile": "fail",+ "compile_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 0,+ "name": "AugmentationSequential[ColorJiggle][random]",+ "note": "container called directly; parameters sampled inside the graph",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "AugmentationSequential",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.container.AugmentationSequential",+ "section": "container",+ "variant": "ColorJiggle, random",+ "where": "kornia/augmentation/_2d/intensity/color_jiggle.py:117"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "4 graph breaks",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 4,+ "name": "AugmentationSequential[p=0.5]",+ "note": "same pipeline with p=0.5 (batch_prob gates live); params=seq._params held CONSTANT (only image is a live input)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "AugmentationSequential",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.container.AugmentationSequential",+ "section": "container",+ "variant": "p=0.5",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 7,+ "name": "AugmentationSequential[p=0.5][random]",+ "note": "container called directly; parameters sampled inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "AugmentationSequential",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.container.AugmentationSequential",+ "section": "container",+ "variant": "p=0.5, random",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "4 graph breaks: step_unsupported",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 4,+ "name": "AugmentationSequential[mask]",+ "note": "data_keys=[input, mask]; params=seq._params held CONSTANT (only image is a live input)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "AugmentationSequential",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.container.AugmentationSequential",+ "section": "container",+ "variant": "mask",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 7,+ "name": "AugmentationSequential[mask][random]",+ "note": "container called directly; parameters sampled inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "AugmentationSequential",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.container.AugmentationSequential",+ "section": "container",+ "variant": "mask, random",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "2 graph breaks",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 2,+ "name": "AugmentationSequential[keypoints]",+ "note": "data_keys=[input, keypoints]; params=seq._params held CONSTANT (only image is a live input)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "AugmentationSequential",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.container.AugmentationSequential",+ "section": "container",+ "variant": "keypoints",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 5,+ "name": "AugmentationSequential[keypoints][random]",+ "note": "container called directly; parameters sampled inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "AugmentationSequential",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.container.AugmentationSequential",+ "section": "container",+ "variant": "keypoints, random",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "4 graph breaks: step_unsupported",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 4,+ "name": "AugmentationSequential[bbox_xyxy]",+ "note": "data_keys=[input, bbox_xyxy]; params=seq._params held CONSTANT (only image is a live input)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "AugmentationSequential",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.container.AugmentationSequential",+ "section": "container",+ "variant": "bbox_xyxy",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 7,+ "name": "AugmentationSequential[bbox_xyxy][random]",+ "note": "container called directly; parameters sampled inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "AugmentationSequential",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.container.AugmentationSequential",+ "section": "container",+ "variant": "bbox_xyxy, random",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "3 graph breaks",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 3,+ "name": "AugmentationSequential[crop]",+ "note": "shape-changing child (RandomResizedCrop); params=seq._params held CONSTANT (only image is a live input)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "AugmentationSequential",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.container.AugmentationSequential",+ "section": "container",+ "variant": "crop",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 5,+ "name": "AugmentationSequential[crop][random]",+ "note": "container called directly; parameters sampled inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "AugmentationSequential",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.container.AugmentationSequential",+ "section": "container",+ "variant": "crop, random",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "ImageSequential",+ "note": "RandomBrightness + kornia.color.RgbToBgr + HFlip; params=seq._params held CONSTANT (only image is a live input)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "ImageSequential",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.container.ImageSequential",+ "section": "container",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 4,+ "name": "ImageSequential[random]",+ "note": "container called directly; parameters sampled inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "ImageSequential",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.container.ImageSequential",+ "section": "container",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "ImageSequential[random_apply]",+ "note": "random_apply=2 (random subset/order of children); params=seq._params held CONSTANT (only image is a live input)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "ImageSequential",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.container.ImageSequential",+ "section": "container",+ "variant": "random_apply",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 6,+ "name": "ImageSequential[random_apply][random]",+ "note": "container called directly; parameters sampled inside the graph",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "ImageSequential",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.container.ImageSequential",+ "section": "container",+ "variant": "random_apply, random",+ "where": "kornia/augmentation/container/image.py:185"+ },+ {+ "compile": "mismatch",+ "compile_detail": "runs, but the result differs from eager: out0: max abs diff 9.838e-01 at 480/7680 elements",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "PatchSequential",+ "note": "grid_size (2,2), patchwise_apply=True (one module per patch); params=seq._params held CONSTANT (only image is a live input)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "PatchSequential",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.container.PatchSequential",+ "section": "container",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "PatchSequential[random]",+ "note": "container called directly; parameters sampled inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "PatchSequential",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.container.PatchSequential",+ "section": "container",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "PatchSequential[not-patchwise]",+ "note": "patchwise_apply=False; params=seq._params held CONSTANT (only image is a live input)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "PatchSequential",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.container.PatchSequential",+ "section": "container",+ "variant": "not-patchwise",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 3,+ "name": "PatchSequential[not-patchwise][random]",+ "note": "container called directly; parameters sampled inside the graph",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "PatchSequential",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.container.PatchSequential",+ "section": "container",+ "variant": "not-patchwise, random",+ "where": "kornia/augmentation/container/patch.py:362"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "VideoSequential",+ "note": "BTCHW (2,4,3,16,20), same_on_frame=True; params=seq._params held CONSTANT (only image is a live input)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "VideoSequential",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.container.VideoSequential",+ "section": "container",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "VideoSequential[random]",+ "note": "container called directly; parameters sampled inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "VideoSequential",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.container.VideoSequential",+ "section": "container",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "VideoSequential[BCTHW]",+ "note": "BCTHW, same_on_frame=False; params=seq._params held CONSTANT (only image is a live input)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "VideoSequential",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.container.VideoSequential",+ "section": "container",+ "variant": "BCTHW",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "VideoSequential[BCTHW][random]",+ "note": "container called directly; parameters sampled inside the graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "VideoSequential",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.container.VideoSequential",+ "section": "container",+ "variant": "BCTHW, random",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "3 graph breaks: step_unsupported",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 3,+ "name": "ManyToManyAugmentationDispather",+ "note": "two AugmentationSequential(RandomBrightness, RandomAffine; input+mask); dispatcher forward has no params arg, so each child is called with its own _params constant (public API replayed manually)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "ManyToManyAugmentationDispather",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.container.ManyToManyAugmentationDispather",+ "section": "container",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 5,+ "name": "ManyToManyAugmentationDispather[random]",+ "note": "dispatcher called directly",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "ManyToManyAugmentationDispather",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.container.ManyToManyAugmentationDispather",+ "section": "container",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "3 graph breaks: step_unsupported",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 3,+ "name": "ManyToOneAugmentationDispather",+ "note": "two AugmentationSequential on the same (input, mask); children replayed with constant _params",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "ManyToOneAugmentationDispather",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.container.ManyToOneAugmentationDispather",+ "section": "container",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 5,+ "name": "ManyToOneAugmentationDispather[random]",+ "note": "dispatcher called directly",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "ManyToOneAugmentationDispather",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.container.ManyToOneAugmentationDispather",+ "section": "container",+ "variant": "random",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "RandAugment",+ "note": "n=2, m=10; policy chosen at eager call, then constant; params=seq._params held CONSTANT (only image is a live input)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RandAugment",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.auto.RandAugment",+ "section": "auto",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 4,+ "name": "RandAugment[random]",+ "note": "container called directly; parameters sampled inside the graph",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "RandAugment",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.auto.RandAugment",+ "section": "auto",+ "variant": "random",+ "where": "kornia/augmentation/container/base.py:122"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "AutoAugment",+ "note": "imagenet policy; sub-policy chosen at eager call, then constant; params=seq._params held CONSTANT (only image is a live input)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "AutoAugment",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.auto.AutoAugment",+ "section": "auto",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 2,+ "name": "AutoAugment[random]",+ "note": "container called directly; parameters sampled inside the graph",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "AutoAugment",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.auto.AutoAugment",+ "section": "auto",+ "variant": "random",+ "where": "kornia/augmentation/container/base.py:122"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "TrivialAugment",+ "note": "one op chosen at eager call, then constant; params=seq._params held CONSTANT (only image is a live input)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "TrivialAugment",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.auto.TrivialAugment",+ "section": "auto",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 2,+ "name": "TrivialAugment[random]",+ "note": "container called directly; parameters sampled inside the graph",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "TrivialAugment",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.auto.TrivialAugment",+ "section": "auto",+ "variant": "random",+ "where": "kornia/augmentation/container/base.py:122"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "2 graph breaks",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 2,+ "name": "AugmentationSequential[RandAugment]",+ "note": "RandAugment wrapped in AugmentationSequential (doc recipe); params=seq._params held CONSTANT (only image is a live input)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "AugmentationSequential",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.container.AugmentationSequential",+ "section": "auto",+ "variant": "RandAugment",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 5,+ "name": "AugmentationSequential[RandAugment][random]",+ "note": "container called directly; parameters sampled inside the graph",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "AugmentationSequential",+ "package": "kornia.augmentation",+ "ref": "kornia.augmentation.container.AugmentationSequential",+ "section": "auto",+ "variant": "RandAugment, random",+ "where": "kornia/augmentation/container/base.py:122"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.harris_response",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "harris_response",+ "package": "kornia.feature",+ "ref": "kornia.feature.harris_response",+ "section": "responses",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.harris_response[sigmas]",+ "note": "sigmas (B,) live",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "harris_response",+ "package": "kornia.feature",+ "ref": "kornia.feature.harris_response",+ "section": "responses",+ "variant": "sigmas",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.harris_response[diff]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "harris_response",+ "package": "kornia.feature",+ "ref": "kornia.feature.harris_response",+ "section": "responses",+ "variant": "diff",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.gftt_response",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "gftt_response",+ "package": "kornia.feature",+ "ref": "kornia.feature.gftt_response",+ "section": "responses",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.hessian_response",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "hessian_response",+ "package": "kornia.feature",+ "ref": "kornia.feature.hessian_response",+ "section": "responses",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.dog_response",+ "note": "input is (B, C, L, H, W) scale levels",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "dog_response",+ "package": "kornia.feature",+ "ref": "kornia.feature.dog_response",+ "section": "responses",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.dog_response_single",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "dog_response_single",+ "package": "kornia.feature",+ "ref": "kornia.feature.dog_response_single",+ "section": "responses",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.CornerHarris",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "CornerHarris",+ "package": "kornia.feature",+ "ref": "kornia.feature.CornerHarris",+ "section": "responses",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.CornerGFTT",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "CornerGFTT",+ "package": "kornia.feature",+ "ref": "kornia.feature.CornerGFTT",+ "section": "responses",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.BlobHessian",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "BlobHessian",+ "package": "kornia.feature",+ "ref": "kornia.feature.BlobHessian",+ "section": "responses",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.BlobDoG",+ "note": "docstring says (B,C,H,W) but dog_response requires 5-D",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "BlobDoG",+ "package": "kornia.feature",+ "ref": "kornia.feature.BlobDoG",+ "section": "responses",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.BlobDoGSingle",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "BlobDoGSingle",+ "package": "kornia.feature",+ "ref": "kornia.feature.BlobDoGSingle",+ "section": "responses",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.BlobHessian[batch2,rgb]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "BlobHessian",+ "package": "kornia.feature",+ "ref": "kornia.feature.BlobHessian",+ "section": "responses",+ "variant": "batch2,rgb",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.laf_from_center_scale_ori",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "laf_from_center_scale_ori",+ "package": "kornia.feature",+ "ref": "kornia.feature.laf_from_center_scale_ori",+ "section": "laf",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.laf_from_center_scale_ori[xy-only]",+ "note": "scale/ori default",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "laf_from_center_scale_ori",+ "package": "kornia.feature",+ "ref": "kornia.feature.laf_from_center_scale_ori",+ "section": "laf",+ "variant": "xy-only",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.get_laf_scale",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_laf_scale",+ "package": "kornia.feature",+ "ref": "kornia.feature.get_laf_scale",+ "section": "laf",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.get_laf_center",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_laf_center",+ "package": "kornia.feature",+ "ref": "kornia.feature.get_laf_center",+ "section": "laf",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.get_laf_orientation",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_laf_orientation",+ "package": "kornia.feature",+ "ref": "kornia.feature.get_laf_orientation",+ "section": "laf",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.set_laf_orientation",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "set_laf_orientation",+ "package": "kornia.feature",+ "ref": "kornia.feature.set_laf_orientation",+ "section": "laf",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.rotate_laf",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "rotate_laf",+ "package": "kornia.feature",+ "ref": "kornia.feature.rotate_laf",+ "section": "laf",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.scale_laf",+ "note": "scale_coef float baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "scale_laf",+ "package": "kornia.feature",+ "ref": "kornia.feature.scale_laf",+ "section": "laf",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.scale_laf[tensor]",+ "note": "scale_coef (B,N,1,1) live",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "scale_laf",+ "package": "kornia.feature",+ "ref": "kornia.feature.scale_laf",+ "section": "laf",+ "variant": "tensor",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.make_upright",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "make_upright",+ "package": "kornia.feature",+ "ref": "kornia.feature.make_upright",+ "section": "laf",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.ellipse_to_laf",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "ellipse_to_laf",+ "package": "kornia.feature",+ "ref": "kornia.feature.ellipse_to_laf",+ "section": "laf",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.laf_to_boundary_points",+ "note": "n_pts baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "laf_to_boundary_points",+ "package": "kornia.feature",+ "ref": "kornia.feature.laf_to_boundary_points",+ "section": "laf",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "returns no tensor (Python object output), nothing to capture",+ "export": "n/a",+ "export_detail": "returns no tensor (Python object output), nothing to capture",+ "graph_breaks": 0,+ "name": "feature.get_laf_pts_to_draw",+ "note": "returns two Python lists -> not exportable by design",+ "onnx": "n/a",+ "onnx_detail": "returns no tensor (Python object output), nothing to capture",+ "operator": "get_laf_pts_to_draw",+ "package": "kornia.feature",+ "ref": "",+ "section": "laf",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.denormalize_laf",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "denormalize_laf",+ "package": "kornia.feature",+ "ref": "kornia.feature.denormalize_laf",+ "section": "laf",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.normalize_laf",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "normalize_laf",+ "package": "kornia.feature",+ "ref": "kornia.feature.normalize_laf",+ "section": "laf",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.laf.generate_patch_grid_from_normalized_LAF",+ "note": "PS baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "generate_patch_grid_from_normalized_LAF",+ "package": "kornia.feature",+ "ref": "",+ "section": "laf",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.extract_patches_simple",+ "note": "PS baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "extract_patches_simple",+ "package": "kornia.feature",+ "ref": "kornia.feature.extract_patches_simple",+ "section": "laf",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.extract_patches_simple[rgb,batch2]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "extract_patches_simple",+ "package": "kornia.feature",+ "ref": "kornia.feature.extract_patches_simple",+ "section": "laf",+ "variant": "rgb,batch2",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.extract_patches_from_pyramid",+ "note": "PS baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "extract_patches_from_pyramid",+ "package": "kornia.feature",+ "ref": "kornia.feature.extract_patches_from_pyramid",+ "section": "laf",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.laf_is_valid",+ "note": "bool (B,N) output",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "laf_is_valid",+ "package": "kornia.feature",+ "ref": "kornia.feature.laf_is_valid",+ "section": "laf",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.laf_is_inside_image",+ "note": "bool output",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "laf_is_inside_image",+ "package": "kornia.feature",+ "ref": "kornia.feature.laf_is_inside_image",+ "section": "laf",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.laf_to_three_points",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "laf_to_three_points",+ "package": "kornia.feature",+ "ref": "kornia.feature.laf_to_three_points",+ "section": "laf",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.laf_from_three_points",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "laf_from_three_points",+ "package": "kornia.feature",+ "ref": "kornia.feature.laf_from_three_points",+ "section": "laf",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.perspective_transform_lafs",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "perspective_transform_lafs",+ "package": "kornia.feature",+ "ref": "kornia.feature.perspective_transform_lafs",+ "section": "laf",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "returns no tensor (Python object output), nothing to capture",+ "export": "n/a",+ "export_detail": "returns no tensor (Python object output), nothing to capture",+ "graph_breaks": 0,+ "name": "feature.KORNIA_CHECK_LAF",+ "note": "validation helper; returns bool/None",+ "onnx": "n/a",+ "onnx_detail": "returns no tensor (Python object output), nothing to capture",+ "operator": "KORNIA_CHECK_LAF",+ "package": "kornia.feature",+ "ref": "kornia.feature.KORNIA_CHECK_LAF",+ "section": "laf",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.PassLAF",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "PassLAF",+ "package": "kornia.feature",+ "ref": "kornia.feature.PassLAF",+ "section": "orientation_affine",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "4 graph breaks: a tensor value is read back into Python (.item() / bool()) during the forward",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 4,+ "name": "feature.PatchDominantGradientOrientation",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "PatchDominantGradientOrientation",+ "package": "kornia.feature",+ "ref": "kornia.feature.PatchDominantGradientOrientation",+ "section": "orientation_affine",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.OriNet",+ "note": "weights: OriNet.pth",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "OriNet",+ "package": "kornia.feature",+ "ref": "kornia.feature.OriNet",+ "section": "orientation_affine",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "6 graph breaks: a tensor value is read back into Python (.item() / bool()) during the forward",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 6,+ "name": "feature.LAFOrienter",+ "note": "patch_size=19 (default PDGO)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "LAFOrienter",+ "package": "kornia.feature",+ "ref": "kornia.feature.LAFOrienter",+ "section": "orientation_affine",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.LAFOrienter[OriNet]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "LAFOrienter",+ "package": "kornia.feature",+ "ref": "kornia.feature.LAFOrienter",+ "section": "orientation_affine",+ "variant": "OriNet",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.PatchAffineShapeEstimator",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "PatchAffineShapeEstimator",+ "package": "kornia.feature",+ "ref": "kornia.feature.PatchAffineShapeEstimator",+ "section": "orientation_affine",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.LAFAffineShapeEstimator",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "LAFAffineShapeEstimator",+ "package": "kornia.feature",+ "ref": "kornia.feature.LAFAffineShapeEstimator",+ "section": "orientation_affine",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.LAFAffNetShapeEstimator",+ "note": "weights: AffNet.pth",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "LAFAffNetShapeEstimator",+ "package": "kornia.feature",+ "ref": "kornia.feature.LAFAffNetShapeEstimator",+ "section": "orientation_affine",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "4 graph breaks: a tensor value is read back into Python (.item() / bool()) during the forward",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 4,+ "name": "feature.SIFTDescriptor",+ "note": "patch_size=41 default; rootsift",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "SIFTDescriptor",+ "package": "kornia.feature",+ "ref": "kornia.feature.SIFTDescriptor",+ "section": "descriptors",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "4 graph breaks: a tensor value is read back into Python (.item() / bool()) during the forward",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 4,+ "name": "feature.SIFTDescriptor[32,no-rootsift]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "SIFTDescriptor",+ "package": "kornia.feature",+ "ref": "kornia.feature.SIFTDescriptor",+ "section": "descriptors",+ "variant": "32,no-rootsift",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "6 graph breaks: a tensor value is read back into Python (.item() / bool()) during the forward",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 6,+ "name": "feature.siftdesc.sift_describe",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "a constant buffer is mutated in place during the forward",+ "operator": "siftdesc.sift_describe",+ "package": "kornia.feature",+ "ref": "",+ "section": "descriptors",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.siftdesc.get_sift_pooling_kernel",+ "note": "ksize baked; fully constant graph",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "siftdesc.get_sift_pooling_kernel",+ "package": "kornia.feature",+ "ref": "",+ "section": "descriptors",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "4 graph breaks: a tensor value is read back into Python (.item() / bool()) during the forward",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 4,+ "name": "feature.DenseSIFTDescriptor",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "the exporter cannot resolve the torch overload the operator calls",+ "operator": "DenseSIFTDescriptor",+ "package": "kornia.feature",+ "ref": "kornia.feature.DenseSIFTDescriptor",+ "section": "descriptors",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "8 graph breaks",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 8,+ "name": "feature.MKDDescriptor",+ "note": "whitening weights mkd-concat-64.pth; patch_size=32",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "MKDDescriptor",+ "package": "kornia.feature",+ "ref": "kornia.feature.MKDDescriptor",+ "section": "descriptors",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "7 graph breaks",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 7,+ "name": "feature.MKDDescriptor[no-whitening]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "MKDDescriptor",+ "package": "kornia.feature",+ "ref": "kornia.feature.MKDDescriptor",+ "section": "descriptors",+ "variant": "no-whitening",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.HardNet",+ "note": "weights: checkpoint_liberty_with_aug.pth",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "HardNet",+ "package": "kornia.feature",+ "ref": "kornia.feature.HardNet",+ "section": "descriptors",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.HardNet8",+ "note": "weights: hardnet8v2.pt",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "HardNet8",+ "package": "kornia.feature",+ "ref": "kornia.feature.HardNet8",+ "section": "descriptors",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.HyNet",+ "note": "weights: HyNet_LIB.pth",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "HyNet",+ "package": "kornia.feature",+ "ref": "kornia.feature.HyNet",+ "section": "descriptors",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.TFeat",+ "note": "weights: tfeat-liberty.params",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "TFeat",+ "package": "kornia.feature",+ "ref": "kornia.feature.TFeat",+ "section": "descriptors",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.SOSNet",+ "note": "weights: sosnet_32x32_liberty.pth",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "SOSNet",+ "package": "kornia.feature",+ "ref": "kornia.feature.SOSNet",+ "section": "descriptors",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.FilterResponseNorm2d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "FilterResponseNorm2d",+ "package": "kornia.feature",+ "ref": "kornia.feature.FilterResponseNorm2d",+ "section": "descriptors",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.TLU",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "TLU",+ "package": "kornia.feature",+ "ref": "kornia.feature.TLU",+ "section": "descriptors",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.LAFDescriptor",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "LAFDescriptor",+ "package": "kornia.feature",+ "ref": "kornia.feature.LAFDescriptor",+ "section": "descriptors",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "6 graph breaks: a tensor value is read back into Python (.item() / bool()) during the forward",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 6,+ "name": "feature.LAFDescriptor[SIFT,rgb]",+ "note": "grayscale_descriptor=True converts rgb",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "LAFDescriptor",+ "package": "kornia.feature",+ "ref": "kornia.feature.LAFDescriptor",+ "section": "descriptors",+ "variant": "SIFT,rgb",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "6 graph breaks: a tensor value is read back into Python (.item() / bool()) during the forward",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 6,+ "name": "feature.get_laf_descriptors",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_laf_descriptors",+ "package": "kornia.feature",+ "ref": "kornia.feature.get_laf_descriptors",+ "section": "descriptors",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.steerers.DiscreteSteerer",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "steerers.DiscreteSteerer",+ "package": "kornia.feature",+ "ref": "",+ "section": "descriptors",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.steerers.DiscreteSteerer.steer_descriptions",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "steerers.DiscreteSteerer.steer_descriptions",+ "package": "kornia.feature",+ "ref": "",+ "section": "descriptors",+ "variant": "",+ "where": ""+ },+ {+ "compile": "fail",+ "compile_detail": "inductor C++ codegen bug in this torch version (generated kernel does not compile)",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 12,+ "name": "feature.ScaleSpaceDetector",+ "note": "num_features=32 baked; default ScalePyramid(3,1.6,15) + BlobHessian + ConvQuadInterp3d",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "ScaleSpaceDetector",+ "package": "kornia.feature",+ "ref": "kornia.feature.ScaleSpaceDetector",+ "section": "detectors",+ "variant": "",+ "where": "kornia/feature/scale_space_detector.py:425"+ },+ {+ "compile": "fail",+ "compile_detail": "inductor C++ codegen bug in this torch version (generated kernel does not compile)",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 12,+ "name": "feature.ScaleSpaceDetector[mask]",+ "note": "mask live",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "ScaleSpaceDetector",+ "package": "kornia.feature",+ "ref": "kornia.feature.ScaleSpaceDetector",+ "section": "detectors",+ "variant": "mask",+ "where": "kornia/feature/scale_space_detector.py:425"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.MultiResolutionDetector",+ "note": "BlobHessian response; num_features=32",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "MultiResolutionDetector",+ "package": "kornia.feature",+ "ref": "kornia.feature.MultiResolutionDetector",+ "section": "detectors",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.KeyNet",+ "note": "weights: keynet_pytorch.pth; dense response map",+ "onnx": "mismatch",+ "onnx_detail": "runs, but the result differs from eager: out0: max abs diff 1.452e+03 at 1280/1280 elements",+ "operator": "KeyNet",+ "package": "kornia.feature",+ "ref": "kornia.feature.KeyNet",+ "section": "detectors",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.KeyNetDetector",+ "note": "",+ "onnx": "mismatch",+ "onnx_detail": "runs, but the result differs from eager: out0: max abs diff 4.718e+01 at 64/192 elements; out1: max abs diff 1.842e+03 at 27/32 elements",+ "operator": "KeyNetDetector",+ "package": "kornia.feature",+ "ref": "kornia.feature.KeyNetDetector",+ "section": "detectors",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "14 graph breaks: a tensor value is read back into Python (.item() / bool()) during the forward",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 14,+ "name": "feature.SIFTFeature",+ "note": "num_features=32",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "SIFTFeature",+ "package": "kornia.feature",+ "ref": "kornia.feature.SIFTFeature",+ "section": "detectors",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "6 graph breaks: a tensor value is read back into Python (.item() / bool()) during the forward",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 6,+ "name": "feature.SIFTFeature[upright]",+ "note": "RGB input is rejected eagerly ('model must return one response map'); gray only",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "SIFTFeature",+ "package": "kornia.feature",+ "ref": "kornia.feature.SIFTFeature",+ "section": "detectors",+ "variant": "upright",+ "where": ""+ },+ {+ "compile": "fail",+ "compile_detail": "inductor C++ codegen bug in this torch version (generated kernel does not compile)",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 43,+ "name": "feature.SIFTFeatureScaleSpace",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "SIFTFeatureScaleSpace",+ "package": "kornia.feature",+ "ref": "kornia.feature.SIFTFeatureScaleSpace",+ "section": "detectors",+ "variant": "",+ "where": "kornia/feature/scale_space_detector.py:425"+ },+ {+ "compile": "fail",+ "compile_detail": "inductor C++ codegen bug in this torch version (generated kernel does not compile)",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 20,+ "name": "feature.GFTTAffNetHardNet",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "GFTTAffNetHardNet",+ "package": "kornia.feature",+ "ref": "kornia.feature.GFTTAffNetHardNet",+ "section": "detectors",+ "variant": "",+ "where": "kornia/feature/scale_space_detector.py:425"+ },+ {+ "compile": "fail",+ "compile_detail": "inductor C++ codegen bug in this torch version (generated kernel does not compile)",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 20,+ "name": "feature.HesAffNetHardNet",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "HesAffNetHardNet",+ "package": "kornia.feature",+ "ref": "kornia.feature.HesAffNetHardNet",+ "section": "detectors",+ "variant": "",+ "where": "kornia/feature/scale_space_detector.py:425"+ },+ {+ "compile": "mismatch",+ "compile_detail": "runs, but the result differs from eager: out2: max abs diff 5.320e-02 at 756/4096 elements",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.KeyNetHardNet",+ "note": "",+ "onnx": "mismatch",+ "onnx_detail": "runs, but the result differs from eager: out0: max abs diff 4.718e+01 at 142/192 elements; out1: max abs diff 1.842e+03 at 27/32 elements; out2: max abs diff 3.8",+ "operator": "KeyNetHardNet",+ "package": "kornia.feature",+ "ref": "kornia.feature.KeyNetHardNet",+ "section": "detectors",+ "variant": "",+ "where": ""+ },+ {+ "compile": "mismatch",+ "compile_detail": "runs, but the result differs from eager: out0: max abs diff 1.932e-03 at 1/192 elements; out2: max abs diff 5.320e-02 at 767/4096 elements",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.KeyNetAffNetHardNet",+ "note": "",+ "onnx": "mismatch",+ "onnx_detail": "runs, but the result differs from eager: out0: max abs diff 5.900e+01 at 142/192 elements; out1: max abs diff 1.842e+03 at 27/32 elements; out2: max abs diff 3.4",+ "operator": "KeyNetAffNetHardNet",+ "package": "kornia.feature",+ "ref": "kornia.feature.KeyNetAffNetHardNet",+ "section": "detectors",+ "variant": "",+ "where": ""+ },+ {+ "compile": "fail",+ "compile_detail": "inductor C++ codegen bug in this torch version (generated kernel does not compile)",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 19,+ "name": "feature.LocalFeature",+ "note": "ScaleSpaceDetector + SIFT",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "LocalFeature",+ "package": "kornia.feature",+ "ref": "kornia.feature.LocalFeature",+ "section": "detectors",+ "variant": "",+ "where": "kornia/feature/scale_space_detector.py:425"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "4 graph breaks: Attempted to call function marked as skipped\n Explanation: Dynamo developers have intentionally marked that the function `register_buffer_assignment_hook.<loca",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 4,+ "name": "feature.DISK",+ "note": "weights depth-save.pth; n=64 top-k; H,W %16",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "DISK",+ "package": "kornia.feature",+ "ref": "kornia.feature.DISK",+ "section": "models",+ "variant": "",+ "where": "kornia/feature/disk/detector.py:54"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "4 graph breaks: Attempted to call function marked as skipped\n Explanation: Dynamo developers have intentionally marked that the function `register_buffer_assignment_hook.<loca",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 4,+ "name": "feature.DISK[n=None]",+ "note": "all NMS maxima (data-dependent count)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "DISK",+ "package": "kornia.feature",+ "ref": "kornia.feature.DISK",+ "section": "models",+ "variant": "n=None",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.DISK.heatmap_and_dense_descriptors",+ "note": "dense head only",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "DISK.heatmap_and_dense_descriptors",+ "package": "kornia.feature",+ "ref": "kornia.feature.DISK.heatmap_and_dense_descriptors",+ "section": "models",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.DeDoDe",+ "note": "detector L-upright + descriptor B-upright (VGG19), float32; n=64",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "DeDoDe",+ "package": "kornia.feature",+ "ref": "kornia.feature.DeDoDe",+ "section": "models",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.DeDoDe[no-imagenet-norm]",+ "note": "bypasses kornia.enhance.Normalize ONNX guard",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "DeDoDe",+ "package": "kornia.feature",+ "ref": "kornia.feature.DeDoDe",+ "section": "models",+ "variant": "no-imagenet-norm",+ "where": ""+ },+ {+ "compile": "fail",+ "compile_detail": "inductor bug in this torch version (KeyError on a tensor storage while lowering the graph)",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.DeDoDe.detect",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "DeDoDe.detect",+ "package": "kornia.feature",+ "ref": "kornia.feature.DeDoDe.detect",+ "section": "models",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.DeDoDe.detect[no-imagenet-norm]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "DeDoDe.detect",+ "package": "kornia.feature",+ "ref": "kornia.feature.DeDoDe.detect",+ "section": "models",+ "variant": "no-imagenet-norm",+ "where": ""+ },+ {+ "compile": "fail",+ "compile_detail": "inductor bug in this torch version (KeyError on a tensor storage while lowering the graph)",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.DeDoDe.describe",+ "note": "keypoints normalised [-1,1]",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "DeDoDe.describe",+ "package": "kornia.feature",+ "ref": "kornia.feature.DeDoDe.describe",+ "section": "models",+ "variant": "",+ "where": ""+ },+ {+ "compile": "fail",+ "compile_detail": "inductor bug in this torch version (KeyError on a tensor storage while lowering the graph)",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.DeDoDe.describe[no-imagenet-norm]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "DeDoDe.describe",+ "package": "kornia.feature",+ "ref": "kornia.feature.DeDoDe.describe",+ "section": "models",+ "variant": "no-imagenet-norm",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "5 graph breaks: Attempted to call function marked as skipped\n Explanation: Dynamo developers have intentionally marked that the function `register_buffer_assignment_hook.<loca",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 5,+ "name": "feature.ALIKED",+ "note": "aliked-t16; max_num_keypoints=64",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "ALIKED",+ "package": "kornia.feature",+ "ref": "kornia.feature.ALIKED",+ "section": "models",+ "variant": "",+ "where": "kornia/feature/aliked/aliked.py:277"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "6 graph breaks: Attempted to call function marked as skipped\n Explanation: Dynamo developers have intentionally marked that the function `register_buffer_assignment_hook.<loca",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 6,+ "name": "feature.ALIKED.forward_laf",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "ALIKED.forward_laf",+ "package": "kornia.feature",+ "ref": "kornia.feature.ALIKED.forward_laf",+ "section": "models",+ "variant": "",+ "where": "kornia/feature/aliked/aliked.py:277"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.ALIKED.extract_dense_map",+ "note": "dense backbone incl. deformable conv",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for the dim=None reduction the operator uses",+ "operator": "ALIKED.extract_dense_map",+ "package": "kornia.feature",+ "ref": "",+ "section": "models",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.XFeatModel",+ "note": "dense backbone (feats, keypoints, heatmap); H,W %32",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "XFeatModel",+ "package": "kornia.feature",+ "ref": "kornia.feature.XFeatModel",+ "section": "models",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "5 graph breaks: Attempted to call function marked as skipped\n Explanation: Dynamo developers have intentionally marked that the function `register_buffer_assignment_hook.<loca",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 5,+ "name": "feature.XFeat.detectAndCompute",+ "note": "top_k=64",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "XFeat.detectAndCompute",+ "package": "kornia.feature",+ "ref": "kornia.feature.XFeat.detectAndCompute",+ "section": "models",+ "variant": "",+ "where": "kornia/feature/xfeat.py:350"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.XFeat.detectAndComputeDense",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "XFeat.detectAndComputeDense",+ "package": "kornia.feature",+ "ref": "kornia.feature.XFeat.detectAndComputeDense",+ "section": "models",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "10 graph breaks: Attempted to call function marked as skipped\n Explanation: Dynamo developers have intentionally marked that the function `register_buffer_assignment_hook.<loca",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 10,+ "name": "feature.XFeat.match_xfeat",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "XFeat.match_xfeat",+ "package": "kornia.feature",+ "ref": "kornia.feature.XFeat.match_xfeat",+ "section": "models",+ "variant": "",+ "where": "kornia/feature/xfeat.py:350"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "3 graph breaks: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 3,+ "name": "feature.XFeat.match_xfeat_star",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "XFeat.match_xfeat_star",+ "package": "kornia.feature",+ "ref": "kornia.feature.XFeat.match_xfeat_star",+ "section": "models",+ "variant": "",+ "where": "kornia/feature/xfeat.py:468"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.InterpolateSparse2d",+ "note": "H,W baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "InterpolateSparse2d",+ "package": "kornia.feature",+ "ref": "kornia.feature.InterpolateSparse2d",+ "section": "models",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "13 graph breaks: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 13,+ "name": "feature.SOLD2_detector",+ "note": "weights sold2_wireframe.pth; returns list of line segments + heatmaps",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "SOLD2_detector",+ "package": "kornia.feature",+ "ref": "kornia.feature.SOLD2_detector",+ "section": "models",+ "variant": "",+ "where": "kornia/feature/sold2/sold2_detector.py:586"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "13 graph breaks: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 13,+ "name": "feature.SOLD2",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "SOLD2",+ "package": "kornia.feature",+ "ref": "kornia.feature.SOLD2",+ "section": "models",+ "variant": "",+ "where": "kornia/feature/sold2/sold2_detector.py:586"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.DeFMO",+ "note": "weights encoder_best.pt + rendering_best.pt",+ "onnx": "mismatch",+ "onnx_detail": "runs, but the result differs from eager: out0: max abs diff 6.689e-01 at 9295/589824 elements",+ "operator": "DeFMO",+ "package": "kornia.feature",+ "ref": "kornia.feature.DeFMO",+ "section": "models",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.match_nn",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "match_nn",+ "package": "kornia.feature",+ "ref": "kornia.feature.match_nn",+ "section": "matching",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.match_nn[dm]",+ "note": "dm passed live (bypasses torch.cdist)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "match_nn",+ "package": "kornia.feature",+ "ref": "kornia.feature.match_nn",+ "section": "matching",+ "variant": "dm",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "2 graph breaks: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 2,+ "name": "feature.match_mnn",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "match_mnn",+ "package": "kornia.feature",+ "ref": "kornia.feature.match_mnn",+ "section": "matching",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "2 graph breaks: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 2,+ "name": "feature.match_mnn[dm]",+ "note": "dm passed live",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "match_mnn",+ "package": "kornia.feature",+ "ref": "kornia.feature.match_mnn",+ "section": "matching",+ "variant": "dm",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "3 graph breaks: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 3,+ "name": "feature.match_snn",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "match_snn",+ "package": "kornia.feature",+ "ref": "kornia.feature.match_snn",+ "section": "matching",+ "variant": "",+ "where": "kornia/feature/matching.py:188"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "13 graph breaks: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 13,+ "name": "feature.match_smnn",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "match_smnn",+ "package": "kornia.feature",+ "ref": "kornia.feature.match_smnn",+ "section": "matching",+ "variant": "",+ "where": "kornia/feature/matching.py:188"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "3 graph breaks: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 3,+ "name": "feature.match_fginn",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "match_fginn",+ "package": "kornia.feature",+ "ref": "kornia.feature.match_fginn",+ "section": "matching",+ "variant": "",+ "where": "kornia/feature/matching.py:322"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "4 graph breaks: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 4,+ "name": "feature.match_fginn[mutual]",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "match_fginn",+ "package": "kornia.feature",+ "ref": "kornia.feature.match_fginn",+ "section": "matching",+ "variant": "mutual",+ "where": "kornia/feature/matching.py:322"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "24 graph breaks: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 24,+ "name": "feature.match_adalam",+ "note": "hw baked",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "match_adalam",+ "package": "kornia.feature",+ "ref": "kornia.feature.match_adalam",+ "section": "matching",+ "variant": "",+ "where": "kornia/feature/adalam/core.py:379"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "feature.DescriptorMatcher[nn]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "DescriptorMatcher",+ "package": "kornia.feature",+ "ref": "kornia.feature.DescriptorMatcher",+ "section": "matching",+ "variant": "nn",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "3 graph breaks: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 3,+ "name": "feature.DescriptorMatcher[snn]",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "DescriptorMatcher",+ "package": "kornia.feature",+ "ref": "kornia.feature.DescriptorMatcher",+ "section": "matching",+ "variant": "snn",+ "where": "kornia/feature/matching.py:188"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "13 graph breaks: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 13,+ "name": "feature.DescriptorMatcher[smnn]",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "DescriptorMatcher",+ "package": "kornia.feature",+ "ref": "kornia.feature.DescriptorMatcher",+ "section": "matching",+ "variant": "smnn",+ "where": "kornia/feature/matching.py:188"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "3 graph breaks: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 3,+ "name": "feature.GeometryAwareDescriptorMatcher[fginn]",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "GeometryAwareDescriptorMatcher",+ "package": "kornia.feature",+ "ref": "kornia.feature.GeometryAwareDescriptorMatcher",+ "section": "matching",+ "variant": "fginn",+ "where": "kornia/feature/matching.py:322"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "24 graph breaks: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 24,+ "name": "feature.GeometryAwareDescriptorMatcher[adalam]",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "GeometryAwareDescriptorMatcher",+ "package": "kornia.feature",+ "ref": "kornia.feature.GeometryAwareDescriptorMatcher",+ "section": "matching",+ "variant": "adalam",+ "where": "kornia/feature/adalam/core.py:379"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "23 graph breaks: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 23,+ "name": "feature.matching.DescriptorMatcherWithSteerer[global]",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "DescriptorMatcherWithSteerer",+ "package": "kornia.feature",+ "ref": "",+ "section": "matching",+ "variant": "global",+ "where": "kornia/feature/matching.py:188"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "13 graph breaks: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 13,+ "name": "feature.matching.DescriptorMatcherWithSteerer[local]",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "DescriptorMatcherWithSteerer",+ "package": "kornia.feature",+ "ref": "",+ "section": "matching",+ "variant": "local",+ "where": "kornia/feature/matching.py:188"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "7 graph breaks: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 7,+ "name": "feature.LoFTR",+ "note": "weights loftr_outdoor.ckpt; gray 1x1x64x80 pair",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "LoFTR",+ "package": "kornia.feature",+ "ref": "kornia.feature.LoFTR",+ "section": "matching",+ "variant": "",+ "where": "kornia/feature/loftr/loftr_module/fine_preprocess.py:79"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "19 graph breaks: a Python branch (if / while) tests tensor values at run time",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 19,+ "name": "feature.LightGlue",+ "note": "disk weights; default conf (depth/width confidence early-exit)",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "LightGlue",+ "package": "kornia.feature",+ "ref": "kornia.feature.LightGlue",+ "section": "matching",+ "variant": "",+ "where": "kornia/feature/lightglue.py:831"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "8 graph breaks: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 8,+ "name": "feature.LightGlue[no-prune]",+ "note": "depth_confidence=-1, width_confidence=-1, flash=False",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "LightGlue",+ "package": "kornia.feature",+ "ref": "kornia.feature.LightGlue",+ "section": "matching",+ "variant": "no-prune",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "25 graph breaks: a Python branch (if / while) tests tensor values at run time",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 25,+ "name": "feature.LightGlueMatcher",+ "note": "hw baked",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "LightGlueMatcher",+ "package": "kornia.feature",+ "ref": "kornia.feature.LightGlueMatcher",+ "section": "matching",+ "variant": "",+ "where": "kornia/feature/lightglue.py:831"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "19 graph breaks: a tensor value is read back into Python (.item() / bool()) during the forward",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 19,+ "name": "feature.LocalFeatureMatcher",+ "note": "SIFTFeature(32) + snn matcher; dict in/out",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "LocalFeatureMatcher",+ "package": "kornia.feature",+ "ref": "kornia.feature.LocalFeatureMatcher",+ "section": "matching",+ "variant": "",+ "where": "kornia/feature/integrated.py:531"+ },+ {+ "compile": "n/a",+ "compile_detail": "already an onnxruntime wrapper (loads fabio-sim LightGlue-ONNX *_fused.onnx graphs); not a torch module",+ "export": "n/a",+ "export_detail": "already an onnxruntime wrapper (loads fabio-sim LightGlue-ONNX *_fused.onnx graphs); not a torch module",+ "graph_breaks": 0,+ "name": "feature.OnnxLightGlue",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "already an onnxruntime wrapper (loads fabio-sim LightGlue-ONNX *_fused.onnx graphs); not a torch module",+ "operator": "OnnxLightGlue",+ "package": "kornia.feature",+ "ref": "kornia.feature.OnnxLightGlue",+ "section": "matching",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "dataclass output container (no forward)",+ "export": "n/a",+ "export_detail": "dataclass output container (no forward)",+ "graph_breaks": 0,+ "name": "feature.DISKFeatures",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "dataclass output container (no forward)",+ "operator": "DISKFeatures",+ "package": "kornia.feature",+ "ref": "kornia.feature.DISKFeatures",+ "section": "models",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "dataclass output container (no forward)",+ "export": "n/a",+ "export_detail": "dataclass output container (no forward)",+ "graph_breaks": 0,+ "name": "feature.ALIKEDFeatures",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "dataclass output container (no forward)",+ "operator": "ALIKEDFeatures",+ "package": "kornia.feature",+ "ref": "kornia.feature.ALIKEDFeatures",+ "section": "models",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "returns a Python dict",+ "export": "n/a",+ "export_detail": "returns a Python dict",+ "graph_breaks": 0,+ "name": "feature.scale_space_detector.get_default_detector_config",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "returns a Python dict",+ "operator": "scale_space_detector.get_default_detector_config",+ "package": "kornia.feature",+ "ref": "",+ "section": "detectors",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.warp_perspective",+ "note": "dsize baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "warp_perspective",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.warp_perspective",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.warp_perspective[nearest,border]",+ "note": "dsize baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "warp_perspective",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.warp_perspective",+ "section": "transform",+ "variant": "nearest,border",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.warp_perspective[fill]",+ "note": "padding_mode=fill; fill_value live input; dsize baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "warp_perspective",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.warp_perspective",+ "section": "transform",+ "variant": "fill",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.warp_perspective[batch2,resize]",+ "note": "dsize != input size",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "warp_perspective",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.warp_perspective",+ "section": "transform",+ "variant": "batch2,resize",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.warp_affine",+ "note": "dsize baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "warp_affine",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.warp_affine",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.warp_affine[align_corners=False,reflection]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "warp_affine",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.warp_affine",+ "section": "transform",+ "variant": "align_corners=False,reflection",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.warp_affine[fill]",+ "note": "fill_value live input; dsize baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "warp_affine",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.warp_affine",+ "section": "transform",+ "variant": "fill",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.warp_grid",+ "note": "grid is a live input (1,H,W,2)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "warp_grid",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.warp_grid",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.remap",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "remap",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.remap",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "mismatch",+ "compile_detail": "runs, but the result differs from eager: out0: max abs diff 9.156e-01 at 186/3840 elements",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.remap[normalized,nearest]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "remap",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.remap",+ "section": "transform",+ "variant": "normalized,nearest",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.homography_warp",+ "note": "normalized homography; dsize baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "homography_warp",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.homography_warp",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.homography_warp[pixel_homography]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "homography_warp",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.homography_warp",+ "section": "transform",+ "variant": "pixel_homography",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.get_tps_transform",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.solve",+ "operator": "get_tps_transform",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.get_tps_transform",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.warp_points_tps",+ "note": "query points distinct from kernel centers",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "warp_points_tps",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.warp_points_tps",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.warp_points_tps[at_centers]",+ "note": "query points == kernel centers (zero distance) -> exercises the eps guard in _kernel_distance",+ "onnx": "mismatch",+ "onnx_detail": "runs, but the result differs from eager: out0: NaN pattern differs (torch 0, ort 10 NaNs)",+ "operator": "warp_points_tps",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.warp_points_tps",+ "section": "transform",+ "variant": "at_centers",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.warp_image_tps",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "warp_image_tps",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.warp_image_tps",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.elastic_transform2d",+ "note": "noise is live input; kernel/sigma/alpha baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "elastic_transform2d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.elastic_transform2d",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.elastic_transform2d[tensor_sigma_alpha]",+ "note": "sigma/alpha as live tensors; kernel_size baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "elastic_transform2d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.elastic_transform2d",+ "section": "transform",+ "variant": "tensor_sigma_alpha",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.affine",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "affine",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.affine",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.rotate",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "rotate",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.rotate",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.rotate[center]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "rotate",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.rotate",+ "section": "transform",+ "variant": "center",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.translate",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "translate",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.translate",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.scale",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "scale",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.scale",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.scale[scalar]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "scale",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.scale",+ "section": "transform",+ "variant": "scalar",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.shear",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "shear",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.shear",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.hflip",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "hflip",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.hflip",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.vflip",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "vflip",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.vflip",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.rot180",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "rot180",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.rot180",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.resize",+ "note": "size baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "resize",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.resize",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.resize[int,side=short]",+ "note": "size=int baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "resize",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.resize",+ "section": "transform",+ "variant": "int,side=short",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.resize[nearest]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "resize",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.resize",+ "section": "transform",+ "variant": "nearest",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.resize[bicubic,align_corners]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "resize",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.resize",+ "section": "transform",+ "variant": "bicubic,align_corners",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.resize[antialias,area]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "resize",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.resize",+ "section": "transform",+ "variant": "antialias,area",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.resize_to_be_divisible",+ "note": "factor baked; output size fixed at trace",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "resize_to_be_divisible",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.resize_to_be_divisible",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.rescale",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "rescale",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.rescale",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.rescale[tuple]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "rescale",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.rescale",+ "section": "transform",+ "variant": "tuple",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.pyrdown",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "pyrdown",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.pyrdown",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.pyrdown[factor=3]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "pyrdown",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.pyrdown",+ "section": "transform",+ "variant": "factor=3",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.pyrup",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "pyrup",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.pyrup",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.build_pyramid",+ "note": "returns list of 3 tensors",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "build_pyramid",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.build_pyramid",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.build_laplacian_pyramid",+ "note": "returns list of 3 tensors",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "build_laplacian_pyramid",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.build_laplacian_pyramid",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.PyrDown",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "PyrDown",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.PyrDown",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.PyrUp",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "PyrUp",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.PyrUp",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.ScalePyramid",+ "note": "returns (pyramid list, sigmas list, pixel_dists list) flattened",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "ScalePyramid",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.ScalePyramid",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.ScalePyramid[double_image]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "ScalePyramid",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.ScalePyramid",+ "section": "transform",+ "variant": "double_image",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.warp_affine3d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "warp_affine3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.warp_affine3d",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.warp_affine3d[nearest]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "warp_affine3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.warp_affine3d",+ "section": "transform",+ "variant": "nearest",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.warp_perspective3d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "warp_perspective3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.warp_perspective3d",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.warp_grid3d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "warp_grid3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.warp_grid3d",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.homography_warp3d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "homography_warp3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.homography_warp3d",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.affine3d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "affine3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.affine3d",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.rotate3d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "rotate3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.rotate3d",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.rotate3d[center]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "rotate3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.rotate3d",+ "section": "transform",+ "variant": "center",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.get_perspective_transform",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_perspective_transform",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.get_perspective_transform",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.get_perspective_transform3d",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.solve",+ "operator": "get_perspective_transform3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.get_perspective_transform3d",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.get_projective_transform",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_projective_transform",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.get_projective_transform",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.get_rotation_matrix2d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_rotation_matrix2d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.get_rotation_matrix2d",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.get_translation_matrix2d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_translation_matrix2d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.get_translation_matrix2d",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.get_shear_matrix2d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_shear_matrix2d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.get_shear_matrix2d",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.get_shear_matrix2d[sx_only]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_shear_matrix2d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.get_shear_matrix2d",+ "section": "transform",+ "variant": "sx_only",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.get_shear_matrix3d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_shear_matrix3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.get_shear_matrix3d",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.get_affine_matrix2d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_affine_matrix2d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.get_affine_matrix2d",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.get_affine_matrix2d[shear]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_affine_matrix2d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.get_affine_matrix2d",+ "section": "transform",+ "variant": "shear",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.get_affine_matrix3d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_affine_matrix3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.get_affine_matrix3d",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.get_affine_matrix3d[shear]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_affine_matrix3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.get_affine_matrix3d",+ "section": "transform",+ "variant": "shear",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.invert_affine_transform",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "invert_affine_transform",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.invert_affine_transform",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.projection_from_Rt",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "projection_from_Rt",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.projection_from_Rt",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "fail",+ "compile_detail": "ValueError : `size` must be given to export `crop_by_indices`; it cannot be inferred from `src_box`.",+ "export": "fail",+ "export_detail": "ValueError : `size` must be given to export `crop_by_indices`; it cannot be inferred from `src_box`.",+ "graph_breaks": 0,+ "name": "transform.crop_by_indices",+ "note": "size inferred from box (data-dependent)",+ "onnx": "fail",+ "onnx_detail": "TorchExportError <- ValueError: `size` must be given to export `crop_by_indices`; it cannot be inferred from `src_box`.",+ "operator": "crop_by_indices",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.crop_by_indices",+ "section": "transform",+ "variant": "",+ "where": "kornia/geometry/transform/crop2d.py:491"+ },+ {+ "compile": "mismatch",+ "compile_detail": "runs, but the result differs from eager: out0: max abs diff 6.851e-01 at 1432/1440 elements",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.crop_by_indices[size]",+ "note": "size baked",+ "onnx": "mismatch",+ "onnx_detail": "runs, but the result differs from eager: out0: max abs diff 6.851e-01 at 1432/1440 elements",+ "operator": "crop_by_indices",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.crop_by_indices",+ "section": "transform",+ "variant": "size",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "5 graph breaks: Unsupported Tensor.item() call with capture_scalar_outputs=False\n Explanation: Dynamo does not support tracing `Tensor.item()` with config.capture_scalar_outpu",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 5,+ "name": "transform.crop_by_boxes",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "crop_by_boxes",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.crop_by_boxes",+ "section": "transform",+ "variant": "",+ "where": "kornia/geometry/transform/crop2d.py:283"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.crop_by_transform_mat",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "crop_by_transform_mat",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.crop_by_transform_mat",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.center_crop",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "center_crop",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.center_crop",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.crop_and_resize",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "crop_and_resize",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.crop_and_resize",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.CenterCrop2D",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "CenterCrop2D",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.CenterCrop2D",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.CenterCrop2D[resample]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "CenterCrop2D",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.CenterCrop2D",+ "section": "transform",+ "variant": "resample",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "7 graph breaks: Unsupported Tensor.item() call with capture_scalar_outputs=False\n Explanation: Dynamo does not support tracing `Tensor.item()` with config.capture_scalar_outpu",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 7,+ "name": "transform.crop_by_boxes3d",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "crop_by_boxes3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.crop_by_boxes3d",+ "section": "transform",+ "variant": "",+ "where": "kornia/geometry/transform/crop3d.py:356"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.crop_by_transform_mat3d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "crop_by_transform_mat3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.crop_by_transform_mat3d",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.center_crop3d",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.solve",+ "operator": "center_crop3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.center_crop3d",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.crop_and_resize3d",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.solve",+ "operator": "crop_and_resize3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.crop_and_resize3d",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.Rotate",+ "note": "angle is a module constant",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Rotate",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.Rotate",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.Translate",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Translate",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.Translate",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.Scale",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Scale",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.Scale",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.Shear",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Shear",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.Shear",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.Affine",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Affine",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.Affine",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.Hflip",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Hflip",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.Hflip",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.Vflip",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Vflip",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.Vflip",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.Rot180",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Rot180",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.Rot180",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.Resize",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Resize",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.Resize",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.Resize[int]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Resize",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.Resize",+ "section": "transform",+ "variant": "int",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.Rescale",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Rescale",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.Rescale",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.HomographyWarper",+ "note": "normalized homography",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "HomographyWarper",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.HomographyWarper",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "transform.HomographyWarper[pixel]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "HomographyWarper",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.HomographyWarper",+ "section": "transform",+ "variant": "pixel",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "precompute_warp_grid path stores grid as state; same graph as HomographyWarper with the homography folded into a constant",+ "export": "n/a",+ "export_detail": "precompute_warp_grid path stores grid as state; same graph as HomographyWarper with the homography folded into a constant",+ "graph_breaks": 0,+ "name": "transform.HomographyWarper[precomputed]",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "precompute_warp_grid path stores grid as state; same graph as HomographyWarper with the homography folded into a constant",+ "operator": "HomographyWarper",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.HomographyWarper",+ "section": "transform",+ "variant": "precomputed",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "abstract base class",+ "export": "n/a",+ "export_detail": "abstract base class",+ "graph_breaks": 0,+ "name": "transform.BaseWarper",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "abstract base class",+ "operator": "BaseWarper",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.BaseWarper",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "optimizer loop (Adam over num_iterations) \u2014 not a graph",+ "export": "n/a",+ "export_detail": "optimizer loop (Adam over num_iterations) \u2014 not a graph",+ "graph_breaks": 0,+ "name": "transform.ImageRegistrator",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "optimizer loop (Adam over num_iterations) \u2014 not a graph",+ "operator": "ImageRegistrator",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.image_registrator.ImageRegistrator",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "1 graph break",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 1,+ "name": "transform.image_registrator.Homography",+ "note": "parametric model; forward() takes no input, graph is fully constant",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "image_registrator.Homography",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.image_registrator.Homography",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "2 graph breaks",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 2,+ "name": "transform.image_registrator.Similarity",+ "note": "parametric model; forward() takes no input, graph is fully constant",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "image_registrator.Similarity",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.image_registrator.Similarity",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "1 graph break",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 1,+ "name": "transform.image_registrator.Homography.forward_inverse",+ "note": "torch.inverse on 3x3 parameter",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "image_registrator.Homography.forward_inverse",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.image_registrator.Homography.forward_inverse",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "abstract base class",+ "export": "n/a",+ "export_detail": "abstract base class",+ "graph_breaks": 0,+ "name": "transform.image_registrator.BaseModel",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "abstract base class",+ "operator": "image_registrator.BaseModel",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.transform.image_registrator.BaseModel",+ "section": "transform",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "grid.create_meshgrid",+ "note": "H,W baked; graph is fully constant",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "create_meshgrid",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.grid.create_meshgrid",+ "section": "grid",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "grid.create_meshgrid[pixel]",+ "note": "H,W baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "create_meshgrid",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.grid.create_meshgrid",+ "section": "grid",+ "variant": "pixel",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "grid.create_meshgrid3d",+ "note": "D,H,W baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "create_meshgrid3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.grid.create_meshgrid3d",+ "section": "grid",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "grid.create_meshgrid[dynamic_from_input]",+ "note": "H,W taken from input shape; still static under export",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "create_meshgrid",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.grid.create_meshgrid",+ "section": "grid",+ "variant": "dynamic_from_input",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "bbox.bbox_generator",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "bbox_generator",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.bbox.bbox_generator",+ "section": "bbox",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "bbox.bbox_generator3d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "bbox_generator3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.bbox.bbox_generator3d",+ "section": "bbox",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "bbox.bbox_to_mask",+ "note": "H,W baked; input (N,4,2)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "bbox_to_mask",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.bbox.bbox_to_mask",+ "section": "bbox",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "bbox.bbox_to_mask3d",+ "note": "size baked; input (N,8,3)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "bbox_to_mask3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.bbox.bbox_to_mask3d",+ "section": "bbox",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "bbox.infer_bbox_shape",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "infer_bbox_shape",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.bbox.infer_bbox_shape",+ "section": "bbox",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "bbox.infer_bbox_shape3d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "infer_bbox_shape3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.bbox.infer_bbox_shape3d",+ "section": "bbox",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "bbox.transform_bbox",+ "note": "mode=xyxy default (B,N,4)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "transform_bbox",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.bbox.transform_bbox",+ "section": "bbox",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "bbox.transform_bbox[xywh]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "transform_bbox",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.bbox.transform_bbox",+ "section": "bbox",+ "variant": "xywh",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "bbox.transform_bbox[polygon]",+ "note": "(B,N,4,2) polygon input",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "transform_bbox",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.bbox.transform_bbox",+ "section": "bbox",+ "variant": "polygon",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 0,+ "name": "bbox.nms",+ "note": "data-dependent output size (keep indices); iou_threshold baked",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "nms",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.bbox.nms",+ "section": "bbox",+ "variant": "",+ "where": "kornia/geometry/bbox.py:578"+ },+ {+ "compile": "n/a",+ "compile_detail": "returns no tensor (Python object output), nothing to capture",+ "export": "n/a",+ "export_detail": "returns no tensor (Python object output), nothing to capture",+ "graph_breaks": 0,+ "name": "bbox.validate_bbox",+ "note": "returns Python bool",+ "onnx": "n/a",+ "onnx_detail": "returns no tensor (Python object output), nothing to capture",+ "operator": "validate_bbox",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.bbox.validate_bbox",+ "section": "bbox",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "returns no tensor (Python object output), nothing to capture",+ "export": "n/a",+ "export_detail": "returns no tensor (Python object output), nothing to capture",+ "graph_breaks": 0,+ "name": "bbox.validate_bbox3d",+ "note": "returns Python bool",+ "onnx": "n/a",+ "onnx_detail": "returns no tensor (Python object output), nothing to capture",+ "operator": "validate_bbox3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.bbox.validate_bbox3d",+ "section": "bbox",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "boxes.Boxes.from_tensor[xyxy]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Boxes.from_tensor",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes.from_tensor",+ "section": "boxes",+ "variant": "xyxy",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "boxes.Boxes.from_tensor[xywh]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Boxes.from_tensor",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes.from_tensor",+ "section": "boxes",+ "variant": "xywh",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "boxes.Boxes.from_tensor[xyxy_plus]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Boxes.from_tensor",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes.from_tensor",+ "section": "boxes",+ "variant": "xyxy_plus",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "boxes.Boxes.from_tensor[vertices]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Boxes.from_tensor",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes.from_tensor",+ "section": "boxes",+ "variant": "vertices",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "boxes.Boxes.from_tensor[no_validate]",+ "note": "validate_boxes=False skips the data-dependent assertion",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Boxes.from_tensor",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes.from_tensor",+ "section": "boxes",+ "variant": "no_validate",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "boxes.Boxes.to_tensor[xyxy]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Boxes.to_tensor",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes.to_tensor",+ "section": "boxes",+ "variant": "xyxy",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "boxes.Boxes.to_tensor[xywh]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Boxes.to_tensor",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes.to_tensor",+ "section": "boxes",+ "variant": "xywh",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "boxes.Boxes.to_tensor[vertices]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Boxes.to_tensor",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes.to_tensor",+ "section": "boxes",+ "variant": "vertices",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "boxes.Boxes.get_boxes_shape",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Boxes.get_boxes_shape",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes.get_boxes_shape",+ "section": "boxes",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "boxes.Boxes.compute_area",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Boxes.compute_area",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes.compute_area",+ "section": "boxes",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "boxes.Boxes.to_mask",+ "note": "H,W baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Boxes.to_mask",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes.to_mask",+ "section": "boxes",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "boxes.Boxes.transform_boxes",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Boxes.transform_boxes",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes.transform_boxes",+ "section": "boxes",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "boxes.Boxes.transform_boxes_",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Boxes.transform_boxes_",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes.transform_boxes_",+ "section": "boxes",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "boxes.Boxes.translate",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Boxes.translate",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes.translate",+ "section": "boxes",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "NotImplementedError stub (kornia/geometry/boxes.py:759, method='fast')",+ "export": "n/a",+ "export_detail": "NotImplementedError stub (kornia/geometry/boxes.py:759, method='fast')",+ "graph_breaks": 0,+ "name": "boxes.Boxes.translate[fast]",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "NotImplementedError stub (kornia/geometry/boxes.py:759, method='fast')",+ "operator": "Boxes.translate",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes.translate",+ "section": "boxes",+ "variant": "fast",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "NotImplementedError stub for tuple bounds (kornia/geometry/boxes.py:391)",+ "export": "n/a",+ "export_detail": "NotImplementedError stub for tuple bounds (kornia/geometry/boxes.py:391)",+ "graph_breaks": 0,+ "name": "boxes.Boxes.clamp[tuple]",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "NotImplementedError stub for tuple bounds (kornia/geometry/boxes.py:391)",+ "operator": "Boxes.clamp",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes.clamp",+ "section": "boxes",+ "variant": "tuple",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "5 graph breaks: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 5,+ "name": "boxes.Boxes.clamp[tensor]",+ "note": "bounds (B,2) tensors",+ "onnx": "fail",+ "onnx_detail": "onnxruntime cannot run the exported graph: RuntimeException : [ONNXRuntimeError] : 6 : RUNTIME_EXCEPTION : Non-zero status code returned while running Where node. ",+ "operator": "Boxes.clamp",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes.clamp",+ "section": "boxes",+ "variant": "tensor",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "boxes.Boxes.pad",+ "note": "padding_size (B,4) int",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Boxes.pad",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes.pad",+ "section": "boxes",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "boxes.Boxes.unpad",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Boxes.unpad",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes.unpad",+ "section": "boxes",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "NotImplementedError stub (kornia/geometry/boxes.py:442)",+ "export": "n/a",+ "export_detail": "NotImplementedError stub (kornia/geometry/boxes.py:442)",+ "graph_breaks": 0,+ "name": "boxes.Boxes.trim",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "NotImplementedError stub (kornia/geometry/boxes.py:442)",+ "operator": "Boxes.trim",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes.trim",+ "section": "boxes",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "boxes.Boxes.filter_boxes_by_area",+ "note": "zeros out boxes outside range",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Boxes.filter_boxes_by_area",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes.filter_boxes_by_area",+ "section": "boxes",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "boxes.Boxes.merge",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Boxes.merge",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes.merge",+ "section": "boxes",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "boxes.Boxes.index_put",+ "note": "indices baked as constants",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Boxes.index_put",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes.index_put",+ "section": "boxes",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "boxes.Boxes.clone",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Boxes.clone",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes.clone",+ "section": "boxes",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "boxes.Boxes.type",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Boxes.type",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes.type",+ "section": "boxes",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "input is a Python list of tensors (ragged batch)",+ "export": "n/a",+ "export_detail": "input is a Python list of tensors (ragged batch)",+ "graph_breaks": 0,+ "name": "boxes.Boxes.to_tensor[list_input]",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "input is a Python list of tensors (ragged batch)",+ "operator": "Boxes.to_tensor",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes.to_tensor",+ "section": "boxes",+ "variant": "list_input",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "ragged list path; returns Python list of tensors",+ "export": "n/a",+ "export_detail": "ragged list path; returns Python list of tensors",+ "graph_breaks": 0,+ "name": "boxes.Boxes.to_tensor[as_padded_sequence]",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "ragged list path; returns Python list of tensors",+ "operator": "Boxes.to_tensor",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes.to_tensor",+ "section": "boxes",+ "variant": "as_padded_sequence",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "boxes.Boxes3D.from_tensor[xyzxyz]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Boxes3D.from_tensor",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes3D.from_tensor",+ "section": "boxes",+ "variant": "xyzxyz",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "boxes.Boxes3D.from_tensor[xyzwhd]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Boxes3D.from_tensor",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes3D.from_tensor",+ "section": "boxes",+ "variant": "xyzwhd",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "boxes.Boxes3D.to_tensor[xyzxyz]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Boxes3D.to_tensor",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes3D.to_tensor",+ "section": "boxes",+ "variant": "xyzxyz",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "boxes.Boxes3D.to_tensor[xyzwhd]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Boxes3D.to_tensor",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes3D.to_tensor",+ "section": "boxes",+ "variant": "xyzwhd",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "boxes.Boxes3D.to_tensor[vertices]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Boxes3D.to_tensor",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes3D.to_tensor",+ "section": "boxes",+ "variant": "vertices",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "boxes.Boxes3D.get_boxes_shape",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Boxes3D.get_boxes_shape",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes3D.get_boxes_shape",+ "section": "boxes",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "boxes.Boxes3D.to_mask",+ "note": "D,H,W baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Boxes3D.to_mask",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes3D.to_mask",+ "section": "boxes",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "boxes.Boxes3D.transform_boxes",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Boxes3D.transform_boxes",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes3D.transform_boxes",+ "section": "boxes",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "boxes.Boxes3D.transform_boxes_",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Boxes3D.transform_boxes_",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.Boxes3D.transform_boxes_",+ "section": "boxes",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "boxes.VideoBoxes.from_tensor",+ "note": "(B,T,N,4,2) vertices",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "VideoBoxes.from_tensor",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.VideoBoxes.from_tensor",+ "section": "boxes",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "boxes.VideoBoxes.to_tensor",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "VideoBoxes.to_tensor",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.boxes.VideoBoxes.to_tensor",+ "section": "boxes",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "boxes.VideoBoxes.transform_boxes",+ "note": "M must be (B*T,3,3): internal data is flattened to (B*T,N,4,2)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "VideoBoxes.transform_boxes",+ "package": "kornia.geometry",+ "ref": "",+ "section": "boxes",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "keypoints.Keypoints.from_tensor",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Keypoints.from_tensor",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.keypoints.Keypoints.from_tensor",+ "section": "keypoints",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "keypoints.Keypoints.to_tensor",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Keypoints.to_tensor",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.keypoints.Keypoints.to_tensor",+ "section": "keypoints",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "keypoints.Keypoints.transform_keypoints",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Keypoints.transform_keypoints",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.keypoints.Keypoints.transform_keypoints",+ "section": "keypoints",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "keypoints.Keypoints.transform_keypoints_",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Keypoints.transform_keypoints_",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.keypoints.Keypoints.transform_keypoints_",+ "section": "keypoints",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "keypoints.Keypoints.pad",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Keypoints.pad",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.keypoints.Keypoints.pad",+ "section": "keypoints",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "keypoints.Keypoints.unpad",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Keypoints.unpad",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.keypoints.Keypoints.unpad",+ "section": "keypoints",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "keypoints.Keypoints.index_put",+ "note": "indices baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Keypoints.index_put",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.keypoints.Keypoints.index_put",+ "section": "keypoints",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "keypoints.Keypoints.clone",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Keypoints.clone",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.keypoints.Keypoints.clone",+ "section": "keypoints",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "keypoints.Keypoints.type",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Keypoints.type",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.keypoints.Keypoints.type",+ "section": "keypoints",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "keypoints.Keypoints3D.from_tensor",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Keypoints3D.from_tensor",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.keypoints.Keypoints3D.from_tensor",+ "section": "keypoints",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "keypoints.Keypoints3D.to_tensor",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Keypoints3D.to_tensor",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.keypoints.Keypoints3D.to_tensor",+ "section": "keypoints",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "NotImplementedError stub (kornia/geometry/keypoints.py:377)",+ "export": "n/a",+ "export_detail": "NotImplementedError stub (kornia/geometry/keypoints.py:377)",+ "graph_breaks": 0,+ "name": "keypoints.Keypoints3D.transform_keypoints",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "NotImplementedError stub (kornia/geometry/keypoints.py:377)",+ "operator": "Keypoints3D.transform_keypoints",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.keypoints.Keypoints3D.transform_keypoints",+ "section": "keypoints",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "NotImplementedError stub (kornia/geometry/keypoints.py:377)",+ "export": "n/a",+ "export_detail": "NotImplementedError stub (kornia/geometry/keypoints.py:377)",+ "graph_breaks": 0,+ "name": "keypoints.Keypoints3D.transform_keypoints_",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "NotImplementedError stub (kornia/geometry/keypoints.py:377)",+ "operator": "Keypoints3D.transform_keypoints_",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.keypoints.Keypoints3D.transform_keypoints_",+ "section": "keypoints",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "NotImplementedError stub (kornia/geometry/keypoints.py:355)",+ "export": "n/a",+ "export_detail": "NotImplementedError stub (kornia/geometry/keypoints.py:355)",+ "graph_breaks": 0,+ "name": "keypoints.Keypoints3D.pad",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "NotImplementedError stub (kornia/geometry/keypoints.py:355)",+ "operator": "Keypoints3D.pad",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.keypoints.Keypoints3D.pad",+ "section": "keypoints",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "NotImplementedError stub (kornia/geometry/keypoints.py:364)",+ "export": "n/a",+ "export_detail": "NotImplementedError stub (kornia/geometry/keypoints.py:364)",+ "graph_breaks": 0,+ "name": "keypoints.Keypoints3D.unpad",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "NotImplementedError stub (kornia/geometry/keypoints.py:364)",+ "operator": "Keypoints3D.unpad",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.keypoints.Keypoints3D.unpad",+ "section": "keypoints",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "keypoints.Keypoints3D.clone",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Keypoints3D.clone",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.keypoints.Keypoints3D.clone",+ "section": "keypoints",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "subpix.conv_soft_argmax2d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "conv_soft_argmax2d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.subpix.conv_soft_argmax2d",+ "section": "subpix",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "subpix.conv_soft_argmax2d[output_value,pixel,stride2]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "conv_soft_argmax2d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.subpix.conv_soft_argmax2d",+ "section": "subpix",+ "variant": "output_value,pixel,stride2",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "subpix.conv_soft_argmax2d[tensor_temperature]",+ "note": "temperature as live 0-d tensor; `if temperature <= 0` is a data-dependent guard",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "conv_soft_argmax2d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.subpix.conv_soft_argmax2d",+ "section": "subpix",+ "variant": "tensor_temperature",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "subpix.conv_soft_argmax3d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "conv_soft_argmax3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.subpix.conv_soft_argmax3d",+ "section": "subpix",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "subpix.conv_soft_argmax3d[normalized,bonus]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "conv_soft_argmax3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.subpix.conv_soft_argmax3d",+ "section": "subpix",+ "variant": "normalized,bonus",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "5 graph breaks: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 5,+ "name": "subpix.conv_quad_interp3d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "conv_quad_interp3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.subpix.conv_quad_interp3d",+ "section": "subpix",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "5 graph breaks: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 5,+ "name": "subpix.conv_quad_interp3d[no_scale_steps]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "conv_quad_interp3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.subpix.conv_quad_interp3d",+ "section": "subpix",+ "variant": "no_scale_steps",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "6 graph breaks: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 6,+ "name": "subpix.conv_quad_interp3d[precomputed_mask]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "conv_quad_interp3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.subpix.conv_quad_interp3d",+ "section": "subpix",+ "variant": "precomputed_mask",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "1 graph break: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 1,+ "name": "subpix.iterative_quad_interp3d",+ "note": "data-dependent candidate set",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "iterative_quad_interp3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.subpix.iterative_quad_interp3d",+ "section": "subpix",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "1 graph break: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 1,+ "name": "subpix.iterative_quad_interp3d[max_candidates]",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "iterative_quad_interp3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.subpix.iterative_quad_interp3d",+ "section": "subpix",+ "variant": "max_candidates",+ "where": "kornia/geometry/subpix/spatial_soft_argmax.py:1092"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "subpix.spatial_softmax2d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "spatial_softmax2d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.subpix.spatial_softmax2d",+ "section": "subpix",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "subpix.spatial_softmax2d[temperature]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "spatial_softmax2d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.subpix.spatial_softmax2d",+ "section": "subpix",+ "variant": "temperature",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "subpix.spatial_expectation2d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "spatial_expectation2d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.subpix.spatial_expectation2d",+ "section": "subpix",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "subpix.spatial_expectation2d[pixel]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "spatial_expectation2d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.subpix.spatial_expectation2d",+ "section": "subpix",+ "variant": "pixel",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "subpix.spatial_soft_argmax2d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "spatial_soft_argmax2d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.subpix.spatial_soft_argmax2d",+ "section": "subpix",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "subpix.spatial_soft_argmax2d[temperature]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "spatial_soft_argmax2d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.subpix.spatial_soft_argmax2d",+ "section": "subpix",+ "variant": "temperature",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "subpix.render_gaussian2d",+ "note": "size baked; mean/std (N,2) normalized",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "render_gaussian2d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.subpix.render_gaussian2d",+ "section": "subpix",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "subpix.render_gaussian2d[pixel]",+ "note": "",+ "onnx": "mismatch",+ "onnx_detail": "runs, but the result differs from eager: out0: max abs diff 1.059e-03 at 3/768 elements",+ "operator": "render_gaussian2d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.subpix.render_gaussian2d",+ "section": "subpix",+ "variant": "pixel",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "2 graph breaks",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 2,+ "name": "subpix.nms2d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "nms2d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.subpix.nms2d",+ "section": "subpix",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "2 graph breaks",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 2,+ "name": "subpix.nms2d[mask_only,5x5]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "nms2d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.subpix.nms2d",+ "section": "subpix",+ "variant": "mask_only,5x5",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "subpix.nms3d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "nms3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.subpix.nms3d",+ "section": "subpix",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "subpix.nms3d[mask_only]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "nms3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.subpix.nms3d",+ "section": "subpix",+ "variant": "mask_only",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "subpix.nms3d_minmax",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "nms3d_minmax",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.subpix.nms3d_minmax",+ "section": "subpix",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "subpix.SpatialSoftArgmax2d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "SpatialSoftArgmax2d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.subpix.SpatialSoftArgmax2d",+ "section": "subpix",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "subpix.ConvSoftArgmax2d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "ConvSoftArgmax2d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.subpix.ConvSoftArgmax2d",+ "section": "subpix",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "subpix.ConvSoftArgmax3d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "ConvSoftArgmax3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.subpix.ConvSoftArgmax3d",+ "section": "subpix",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "5 graph breaks: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 5,+ "name": "subpix.ConvQuadInterp3d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "ConvQuadInterp3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.subpix.ConvQuadInterp3d",+ "section": "subpix",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "1 graph break: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 1,+ "name": "subpix.IterativeQuadInterp3d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "IterativeQuadInterp3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.subpix.IterativeQuadInterp3d",+ "section": "subpix",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "1 graph break: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 1,+ "name": "subpix.AdaptiveQuadInterp3d",+ "note": "mode=auto",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "AdaptiveQuadInterp3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.subpix.AdaptiveQuadInterp3d",+ "section": "subpix",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "5 graph breaks: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 5,+ "name": "subpix.AdaptiveQuadInterp3d[conv]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "AdaptiveQuadInterp3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.subpix.AdaptiveQuadInterp3d",+ "section": "subpix",+ "variant": "conv",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "1 graph break: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 1,+ "name": "subpix.AdaptiveQuadInterp3d[patch]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "AdaptiveQuadInterp3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.subpix.AdaptiveQuadInterp3d",+ "section": "subpix",+ "variant": "patch",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "subpix.NonMaximaSuppression2d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "NonMaximaSuppression2d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.subpix.NonMaximaSuppression2d",+ "section": "subpix",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "subpix.NonMaximaSuppression3d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "NonMaximaSuppression3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.subpix.NonMaximaSuppression3d",+ "section": "subpix",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "line.fit_line",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "fit_line",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.line.fit_line",+ "section": "line",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "line.fit_line[weights]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "fit_line",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.line.fit_line",+ "section": "line",+ "variant": "weights",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "line.ParametrizedLine.through",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "ParametrizedLine.through",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.line.ParametrizedLine.through",+ "section": "line",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "line.ParametrizedLine.point_at",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "ParametrizedLine.point_at",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.line.ParametrizedLine.point_at",+ "section": "line",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "line.ParametrizedLine.point_at[float]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "ParametrizedLine.point_at",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.line.ParametrizedLine.point_at",+ "section": "line",+ "variant": "float",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "line.ParametrizedLine.projection",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "ParametrizedLine.projection",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.line.ParametrizedLine.projection",+ "section": "line",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "line.ParametrizedLine.distance",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "ParametrizedLine.distance",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.line.ParametrizedLine.distance",+ "section": "line",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "line.ParametrizedLine.squared_distance",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "ParametrizedLine.squared_distance",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.line.ParametrizedLine.squared_distance",+ "section": "line",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "line.ParametrizedLine.intersect",+ "note": "returns (lambda, point)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "ParametrizedLine.intersect",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.line.ParametrizedLine.intersect",+ "section": "line",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "returns no tensor (Python object output), nothing to capture",+ "export": "n/a",+ "export_detail": "returns no tensor (Python object output), nothing to capture",+ "graph_breaks": 0,+ "name": "line.ParametrizedLine.dim",+ "note": "returns Python int",+ "onnx": "n/a",+ "onnx_detail": "returns no tensor (Python object output), nothing to capture",+ "operator": "ParametrizedLine.dim",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.line.ParametrizedLine.dim",+ "section": "line",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "ray.Ray",+ "note": "Ray is an alias of ParametrizedLine",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "ray.Ray",+ "package": "kornia.geometry",+ "ref": "",+ "section": "line",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "2 graph breaks",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 2,+ "name": "plane.fit_plane",+ "note": "SVD",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.svd",+ "operator": "fit_plane",+ "package": "kornia.geometry",+ "ref": "",+ "section": "plane",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "plane.Hyperplane.through",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.svd",+ "operator": "Hyperplane.through",+ "package": "kornia.geometry",+ "ref": "",+ "section": "plane",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "does not run eagerly with the probed inputs: BaseError : Validation condition failed",+ "export": "n/a",+ "export_detail": "does not run eagerly with the probed inputs: BaseError : Validation condition failed",+ "graph_breaks": 0,+ "name": "plane.Hyperplane.through[2d]",+ "note": "KORNIA BUG: 2-D branch wraps a 2-vector into Vector3 -> always fails validation (plane.py:185)",+ "onnx": "n/a",+ "onnx_detail": "does not run eagerly with the probed inputs: BaseError : Validation condition failed",+ "operator": "Hyperplane.through",+ "package": "kornia.geometry",+ "ref": "",+ "section": "plane",+ "variant": "2d",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "plane.Hyperplane.from_vector",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Hyperplane.from_vector",+ "package": "kornia.geometry",+ "ref": "",+ "section": "plane",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "3 graph breaks",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 3,+ "name": "plane.Hyperplane.signed_distance",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Hyperplane.signed_distance",+ "package": "kornia.geometry",+ "ref": "",+ "section": "plane",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "3 graph breaks",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 3,+ "name": "plane.Hyperplane.abs_distance",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Hyperplane.abs_distance",+ "package": "kornia.geometry",+ "ref": "",+ "section": "plane",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "4 graph breaks",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 4,+ "name": "plane.Hyperplane.projection",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Hyperplane.projection",+ "package": "kornia.geometry",+ "ref": "",+ "section": "plane",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "vector.Vector3.normalized",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Vector3.normalized",+ "package": "kornia.geometry",+ "ref": "",+ "section": "vector",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "vector.Vector3.dot",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Vector3.dot",+ "package": "kornia.geometry",+ "ref": "",+ "section": "vector",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "vector.Vector3.squared_norm",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Vector3.squared_norm",+ "package": "kornia.geometry",+ "ref": "",+ "section": "vector",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "vector.Vector3.from_coords",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Vector3.from_coords",+ "package": "kornia.geometry",+ "ref": "",+ "section": "vector",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "vector.Vector3.xyz",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Vector3.xyz",+ "package": "kornia.geometry",+ "ref": "",+ "section": "vector",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "vector.Vector3.arith",+ "note": "TensorWrapper __add__/__sub__/__mul__",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Vector3.arith",+ "package": "kornia.geometry",+ "ref": "",+ "section": "vector",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "vector.Vector2.normalized",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Vector2.normalized",+ "package": "kornia.geometry",+ "ref": "",+ "section": "vector",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "vector.Vector2.dot",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Vector2.dot",+ "package": "kornia.geometry",+ "ref": "",+ "section": "vector",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "vector.Vector2.squared_norm",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Vector2.squared_norm",+ "package": "kornia.geometry",+ "ref": "",+ "section": "vector",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "vector.Vector2.from_coords",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Vector2.from_coords",+ "package": "kornia.geometry",+ "ref": "",+ "section": "vector",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "vector.Scalar",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Scalar",+ "package": "kornia.geometry",+ "ref": "",+ "section": "vector",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "random constructor; no tensor input, non-deterministic",+ "export": "n/a",+ "export_detail": "random constructor; no tensor input, non-deterministic",+ "graph_breaks": 0,+ "name": "vector.Vector3.random",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "random constructor; no tensor input, non-deterministic",+ "operator": "Vector3.random",+ "package": "kornia.geometry",+ "ref": "",+ "section": "vector",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "2 graph breaks",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 2,+ "name": "pose.NamedPose.from_matrix.transform_points",+ "note": "points (N,3) with a batch-1 pose; (B,N,3) is rejected by So3.__mul__",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "NamedPose.from_matrix.transform_points",+ "package": "kornia.geometry",+ "ref": "",+ "section": "pose",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "pose.NamedPose.from_matrix.pose",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "NamedPose.from_matrix.pose",+ "package": "kornia.geometry",+ "ref": "",+ "section": "pose",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "pose.NamedPose.from_rt",+ "note": "rotation as (B,3,3) matrix",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "NamedPose.from_rt",+ "package": "kornia.geometry",+ "ref": "",+ "section": "pose",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "5 graph breaks: step_unsupported",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 5,+ "name": "pose.NamedPose.inverse",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "NamedPose.inverse",+ "package": "kornia.geometry",+ "ref": "",+ "section": "pose",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "6 graph breaks: step_unsupported",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 6,+ "name": "pose.NamedPose.mul",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "NamedPose.mul",+ "package": "kornia.geometry",+ "ref": "",+ "section": "pose",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "pose.NamedPose.rotation_translation",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "NamedPose.rotation_translation",+ "package": "kornia.geometry",+ "ref": "",+ "section": "pose",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "2 graph breaks",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 2,+ "name": "pose.NamedPose.from_matrix[se2]",+ "note": "3x3 -> Se2 path; points (N,2)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "NamedPose.from_matrix",+ "package": "kornia.geometry",+ "ref": "",+ "section": "pose",+ "variant": "se2",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "validation helper, returns None",+ "export": "n/a",+ "export_detail": "validation helper, returns None",+ "graph_breaks": 0,+ "name": "pose.check_matrix_shape",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "validation helper, returns None",+ "operator": "check_matrix_shape",+ "package": "kornia.geometry",+ "ref": "",+ "section": "pose",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "re-exports of kornia.geometry.liegroup / quaternion \u2014 covered by the liegroup area",+ "export": "n/a",+ "export_detail": "re-exports of kornia.geometry.liegroup / quaternion \u2014 covered by the liegroup area",+ "graph_breaks": 0,+ "name": "pose.Quaternion/Se2/Se3/So2/So3",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "re-exports of kornia.geometry.liegroup / quaternion \u2014 covered by the liegroup area",+ "operator": "Quaternion/Se2/Se3/So2/So3",+ "package": "kornia.geometry",+ "ref": "",+ "section": "pose",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.rad2deg",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "rad2deg",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.rad2deg",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.deg2rad",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "deg2rad",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.deg2rad",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.pol2cart",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "pol2cart",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.pol2cart",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.cart2pol",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "cart2pol",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.cart2pol",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.angle_to_rotation_matrix",+ "note": "angle in degrees",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "angle_to_rotation_matrix",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.angle_to_rotation_matrix",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.convert_points_from_homogeneous",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "convert_points_from_homogeneous",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.convert_points_from_homogeneous",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.convert_points_to_homogeneous",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "convert_points_to_homogeneous",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.convert_points_to_homogeneous",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.convert_affinematrix_to_homography",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "convert_affinematrix_to_homography",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.convert_affinematrix_to_homography",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.convert_affinematrix_to_homography3d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "convert_affinematrix_to_homography3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.convert_affinematrix_to_homography3d",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.normalize_pixel_coordinates",+ "note": "H,W baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "normalize_pixel_coordinates",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.normalize_pixel_coordinates",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.denormalize_pixel_coordinates",+ "note": "H,W baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "denormalize_pixel_coordinates",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.denormalize_pixel_coordinates",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.normalize_pixel_coordinates3d",+ "note": "D,H,W baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "normalize_pixel_coordinates3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.normalize_pixel_coordinates3d",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.denormalize_pixel_coordinates3d",+ "note": "D,H,W baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "denormalize_pixel_coordinates3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.denormalize_pixel_coordinates3d",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.normalize_points_with_intrinsics",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "normalize_points_with_intrinsics",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.normalize_points_with_intrinsics",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.denormalize_points_with_intrinsics",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "denormalize_points_with_intrinsics",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.denormalize_points_with_intrinsics",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.normalize_homography",+ "note": "dsize baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "normalize_homography",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.normalize_homography",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.denormalize_homography",+ "note": "dsize baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "denormalize_homography",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.denormalize_homography",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.normalize_homography3d",+ "note": "dsize baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "normalize_homography3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.normalize_homography3d",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.normal_transform_pixel",+ "note": "H,W baked; graph fully constant",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "normal_transform_pixel",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.normal_transform_pixel",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.normal_transform_pixel3d",+ "note": "D,H,W baked; graph fully constant",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "normal_transform_pixel3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.normal_transform_pixel3d",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.quaternion_to_axis_angle",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "quaternion_to_axis_angle",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.quaternion_to_axis_angle",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "deprecated alias of quaternion_to_axis_angle",+ "export": "n/a",+ "export_detail": "deprecated alias of quaternion_to_axis_angle",+ "graph_breaks": 0,+ "name": "geometry.conversions.quaternion_to_angle_axis",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "deprecated alias of quaternion_to_axis_angle",+ "operator": "quaternion_to_angle_axis",+ "package": "kornia.geometry",+ "ref": "",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.quaternion_to_rotation_matrix",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "quaternion_to_rotation_matrix",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.quaternion_to_rotation_matrix",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.quaternion_log_to_exp",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "quaternion_log_to_exp",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.quaternion_log_to_exp",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.quaternion_exp_to_log",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "quaternion_exp_to_log",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.quaternion_exp_to_log",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.normalize_quaternion",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "normalize_quaternion",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.normalize_quaternion",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.vector_to_skew_symmetric_matrix",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "vector_to_skew_symmetric_matrix",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.vector_to_skew_symmetric_matrix",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.rotation_matrix_to_axis_angle",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "rotation_matrix_to_axis_angle",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.rotation_matrix_to_axis_angle",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "deprecated alias of rotation_matrix_to_axis_angle",+ "export": "n/a",+ "export_detail": "deprecated alias of rotation_matrix_to_axis_angle",+ "graph_breaks": 0,+ "name": "geometry.conversions.rotation_matrix_to_angle_axis",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "deprecated alias of rotation_matrix_to_axis_angle",+ "operator": "rotation_matrix_to_angle_axis",+ "package": "kornia.geometry",+ "ref": "",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.rotation_matrix_to_quaternion",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "rotation_matrix_to_quaternion",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.rotation_matrix_to_quaternion",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.axis_angle_to_quaternion",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "axis_angle_to_quaternion",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.axis_angle_to_quaternion",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "deprecated alias of axis_angle_to_quaternion",+ "export": "n/a",+ "export_detail": "deprecated alias of axis_angle_to_quaternion",+ "graph_breaks": 0,+ "name": "geometry.conversions.angle_axis_to_quaternion",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "deprecated alias of axis_angle_to_quaternion",+ "operator": "angle_axis_to_quaternion",+ "package": "kornia.geometry",+ "ref": "",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.axis_angle_to_rotation_matrix",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "axis_angle_to_rotation_matrix",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.axis_angle_to_rotation_matrix",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "deprecated alias of axis_angle_to_rotation_matrix",+ "export": "n/a",+ "export_detail": "deprecated alias of axis_angle_to_rotation_matrix",+ "graph_breaks": 0,+ "name": "geometry.conversions.angle_axis_to_rotation_matrix",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "deprecated alias of axis_angle_to_rotation_matrix",+ "operator": "angle_axis_to_rotation_matrix",+ "package": "kornia.geometry",+ "ref": "",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.quaternion_from_euler",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "quaternion_from_euler",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.quaternion_from_euler",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.euler_from_quaternion",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "euler_from_quaternion",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.euler_from_quaternion",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.Rt_to_matrix4x4",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Rt_to_matrix4x4",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.Rt_to_matrix4x4",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.matrix4x4_to_Rt",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "matrix4x4_to_Rt",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.matrix4x4_to_Rt",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.worldtocam_to_camtoworld_Rt",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "worldtocam_to_camtoworld_Rt",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.worldtocam_to_camtoworld_Rt",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.camtoworld_to_worldtocam_Rt",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "camtoworld_to_worldtocam_Rt",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.camtoworld_to_worldtocam_Rt",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.camtoworld_graphics_to_vision_4x4",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "camtoworld_graphics_to_vision_4x4",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.camtoworld_graphics_to_vision_4x4",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.camtoworld_vision_to_graphics_4x4",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "camtoworld_vision_to_graphics_4x4",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.camtoworld_vision_to_graphics_4x4",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.camtoworld_graphics_to_vision_Rt",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "camtoworld_graphics_to_vision_Rt",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.camtoworld_graphics_to_vision_Rt",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.camtoworld_vision_to_graphics_Rt",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "camtoworld_vision_to_graphics_Rt",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.camtoworld_vision_to_graphics_Rt",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.conversions.ARKitQTVecs_to_ColmapQTVecs",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "ARKitQTVecs_to_ColmapQTVecs",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.conversions.ARKitQTVecs_to_ColmapQTVecs",+ "section": "conversions",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.linalg.relative_transformation",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "relative_transformation",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.linalg.relative_transformation",+ "section": "linalg",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.linalg.compose_transformations",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "compose_transformations",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.linalg.compose_transformations",+ "section": "linalg",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.linalg.inverse_transformation",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "inverse_transformation",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.linalg.inverse_transformation",+ "section": "linalg",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.linalg.transform_points",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "transform_points",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.linalg.transform_points",+ "section": "linalg",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.linalg.transform_points[2d-homography]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "transform_points",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.linalg.transform_points",+ "section": "linalg",+ "variant": "2d-homography",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.linalg.point_line_distance",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "point_line_distance",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.linalg.point_line_distance",+ "section": "linalg",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.linalg.squared_norm",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "squared_norm",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.linalg.squared_norm",+ "section": "linalg",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.linalg.batched_dot_product",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "batched_dot_product",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.linalg.batched_dot_product",+ "section": "linalg",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.linalg.batched_squared_norm",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "batched_squared_norm",+ "package": "kornia.geometry",+ "ref": "",+ "section": "linalg",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.linalg.euclidean_distance",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "euclidean_distance",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.linalg.euclidean_distance",+ "section": "linalg",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.homography.find_homography_dlt",+ "note": "solver=lu (default)",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.lu_factor",+ "operator": "find_homography_dlt",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.homography.find_homography_dlt",+ "section": "homography",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.homography.find_homography_dlt[svd]",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.svd",+ "operator": "find_homography_dlt",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.homography.find_homography_dlt",+ "section": "homography",+ "variant": "svd",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.homography.find_homography_dlt[weights]",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.lu_factor",+ "operator": "find_homography_dlt",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.homography.find_homography_dlt",+ "section": "homography",+ "variant": "weights",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.homography.find_homography_dlt_iterated",+ "note": "n_iter baked",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.lu_factor",+ "operator": "find_homography_dlt_iterated",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.homography.find_homography_dlt_iterated",+ "section": "homography",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.homography.find_homography_lines_dlt",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.svd",+ "operator": "find_homography_lines_dlt",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.homography.find_homography_lines_dlt",+ "section": "homography",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.homography.find_homography_lines_dlt_iterated",+ "note": "n_iter baked",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.svd",+ "operator": "find_homography_lines_dlt_iterated",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.homography.find_homography_lines_dlt_iterated",+ "section": "homography",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.homography.line_segment_transfer_error_one_way",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "line_segment_transfer_error_one_way",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.homography.line_segment_transfer_error_one_way",+ "section": "homography",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.homography.oneway_transfer_error",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "oneway_transfer_error",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.homography.oneway_transfer_error",+ "section": "homography",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.homography.symmetric_transfer_error",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "symmetric_transfer_error",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.homography.symmetric_transfer_error",+ "section": "homography",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.homography.sample_is_valid_for_homography",+ "note": "returns bool (B,)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "sample_is_valid_for_homography",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.homography.sample_is_valid_for_homography",+ "section": "homography",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.homography.normalize_points",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "normalize_points",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.normalize_points",+ "section": "homography",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.homography.safe_inverse_with_mask",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "safe_inverse_with_mask",+ "package": "kornia.geometry",+ "ref": "",+ "section": "homography",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.homography.safe_solve_with_mask",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.lu_factor",+ "operator": "safe_solve_with_mask",+ "package": "kornia.geometry",+ "ref": "",+ "section": "homography",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.epipolar.find_fundamental",+ "note": "8POINT",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.eigh",+ "operator": "find_fundamental",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.find_fundamental",+ "section": "epipolar",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.epipolar.find_fundamental[weights]",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.eigh",+ "operator": "find_fundamental",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.find_fundamental",+ "section": "epipolar",+ "variant": "weights",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "16 graph breaks: a Python branch (if / while) tests tensor values at run time",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 16,+ "name": "geometry.epipolar.find_fundamental[7POINT]",+ "note": "returns up to 3 F (B,3*3,3)",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "find_fundamental",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.find_fundamental",+ "section": "epipolar",+ "variant": "7POINT",+ "where": "kornia/geometry/solvers/polynomial_solver.py:135"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "8 graph breaks: a Python branch (if / while) tests tensor values at run time",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 8,+ "name": "geometry.epipolar.find_essential",+ "note": "5pt Nister, returns (B,10,3,3)",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "find_essential",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.find_essential",+ "section": "epipolar",+ "variant": "",+ "where": "kornia/geometry/epipolar/essential.py:280"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "8 graph breaks: a Python branch (if / while) tests tensor values at run time",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 8,+ "name": "geometry.epipolar.find_essential[weights]",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "find_essential",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.find_essential",+ "section": "epipolar",+ "variant": "weights",+ "where": "kornia/geometry/epipolar/essential.py:280"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.epipolar.project_to_essential",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.svd",+ "operator": "project_to_essential",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.project_to_essential",+ "section": "epipolar",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.epipolar.essential_from_fundamental",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "essential_from_fundamental",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.essential_from_fundamental",+ "section": "epipolar",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.epipolar.essential_from_Rt",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "essential_from_Rt",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.essential_from_Rt",+ "section": "epipolar",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.epipolar.decompose_essential_matrix",+ "note": "SVD-based; sign ambiguity",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.svd",+ "operator": "decompose_essential_matrix",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.decompose_essential_matrix",+ "section": "epipolar",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.epipolar.decompose_essential_matrix_no_svd",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "decompose_essential_matrix_no_svd",+ "package": "kornia.geometry",+ "ref": "",+ "section": "epipolar",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.epipolar.motion_from_essential",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.svd",+ "operator": "motion_from_essential",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.motion_from_essential",+ "section": "epipolar",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.epipolar.motion_from_essential_choose_solution",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.svd",+ "operator": "motion_from_essential_choose_solution",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.motion_from_essential_choose_solution",+ "section": "epipolar",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.epipolar.motion_from_essential_choose_solution[mask]",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.svd",+ "operator": "motion_from_essential_choose_solution",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.motion_from_essential_choose_solution",+ "section": "epipolar",+ "variant": "mask",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.epipolar.relative_camera_motion",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "relative_camera_motion",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.relative_camera_motion",+ "section": "epipolar",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.epipolar.fundamental_from_essential",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "fundamental_from_essential",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.fundamental_from_essential",+ "section": "epipolar",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.epipolar.fundamental_from_projections",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "fundamental_from_projections",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.fundamental_from_projections",+ "section": "epipolar",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.epipolar.compute_correspond_epilines",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "compute_correspond_epilines",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.compute_correspond_epilines",+ "section": "epipolar",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.epipolar.normalize_points",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "normalize_points",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.normalize_points",+ "section": "epipolar",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.epipolar.normalize_transformation",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "normalize_transformation",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.normalize_transformation",+ "section": "epipolar",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.epipolar.get_perpendicular",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_perpendicular",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.get_perpendicular",+ "section": "epipolar",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.epipolar.get_closest_point_on_epipolar_line",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_closest_point_on_epipolar_line",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.get_closest_point_on_epipolar_line",+ "section": "epipolar",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.epipolar.sampson_epipolar_distance",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "sampson_epipolar_distance",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.sampson_epipolar_distance",+ "section": "epipolar",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.epipolar.sampson_epipolar_distance[no-matmul]",+ "note": "einsum path",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "sampson_epipolar_distance",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.sampson_epipolar_distance",+ "section": "epipolar",+ "variant": "no-matmul",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.epipolar.symmetrical_epipolar_distance",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "symmetrical_epipolar_distance",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.symmetrical_epipolar_distance",+ "section": "epipolar",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.epipolar.left_to_right_epipolar_distance",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "left_to_right_epipolar_distance",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.left_to_right_epipolar_distance",+ "section": "epipolar",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.epipolar.right_to_left_epipolar_distance",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "right_to_left_epipolar_distance",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.right_to_left_epipolar_distance",+ "section": "epipolar",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.epipolar.projection_from_KRt",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "projection_from_KRt",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.projection_from_KRt",+ "section": "epipolar",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.epipolar.projections_from_fundamental",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.svd",+ "operator": "projections_from_fundamental",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.projections_from_fundamental",+ "section": "epipolar",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.epipolar.KRt_from_projection",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.qr",+ "operator": "KRt_from_projection",+ "package": "kornia.geometry",+ "ref": "",+ "section": "epipolar",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.epipolar.depth_from_point",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "depth_from_point",+ "package": "kornia.geometry",+ "ref": "",+ "section": "epipolar",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.epipolar.intrinsics_like",+ "note": "focal baked; only shape of image used",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "intrinsics_like",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.intrinsics_like",+ "section": "epipolar",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.epipolar.scale_intrinsics",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "scale_intrinsics",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.scale_intrinsics",+ "section": "epipolar",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.epipolar.scale_intrinsics[float]",+ "note": "scale baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "scale_intrinsics",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.scale_intrinsics",+ "section": "epipolar",+ "variant": "float",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "fail",+ "export_detail": "a tensor value is read back into Python (.item() / bool()) during the forward",+ "graph_breaks": 0,+ "name": "geometry.epipolar.random_intrinsics",+ "note": "uses torch.rand inside",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "random_intrinsics",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.random_intrinsics",+ "section": "epipolar",+ "variant": "",+ "where": "kornia/geometry/epipolar/projection.py:75"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.epipolar.cross_product_matrix",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "cross_product_matrix",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.cross_product_matrix",+ "section": "epipolar",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.epipolar.triangulate_points",+ "note": "solver=eigh (default)",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.eigh",+ "operator": "triangulate_points",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.triangulate_points",+ "section": "epipolar",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.epipolar.triangulate_points[svd]",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.svd",+ "operator": "triangulate_points",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.epipolar.triangulate_points",+ "section": "epipolar",+ "variant": "svd",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "random scene generator with int-only args (returns dict of random tensors)",+ "export": "n/a",+ "export_detail": "random scene generator with int-only args (returns dict of random tensors)",+ "graph_breaks": 0,+ "name": "geometry.epipolar.generate_scene",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "random scene generator with int-only args (returns dict of random tensors)",+ "operator": "generate_scene",+ "package": "kornia.geometry",+ "ref": "",+ "section": "epipolar",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.camera.project_points",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "project_points",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.camera.perspective.project_points",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.camera.unproject_points",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "unproject_points",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.camera.perspective.unproject_points",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.camera.unproject_points[normalize]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "unproject_points",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.camera.perspective.unproject_points",+ "section": "camera",+ "variant": "normalize",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.camera.cam2pixel",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "cam2pixel",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.camera.pinhole.cam2pixel",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.camera.pixel2cam",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "pixel2cam",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.camera.pinhole.pixel2cam",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.camera.PinholeCamera.project",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "PinholeCamera.project",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.camera.pinhole.PinholeCamera.project",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.camera.PinholeCamera.unproject",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "PinholeCamera.unproject",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.camera.pinhole.PinholeCamera.unproject",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.camera.PinholeCamera.intrinsics_inverse",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "PinholeCamera.intrinsics_inverse",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.camera.pinhole.PinholeCamera.intrinsics_inverse",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.camera.PinholeCamera.scale",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "PinholeCamera.scale",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.camera.pinhole.PinholeCamera.scale",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.camera.PinholeCamera.properties",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "PinholeCamera.properties",+ "package": "kornia.geometry",+ "ref": "",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.camera.pinhole.pinhole_matrix",+ "note": "legacy 12-vector pinhole",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "pinhole.pinhole_matrix",+ "package": "kornia.geometry",+ "ref": "",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.camera.pinhole.inverse_pinhole_matrix",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "pinhole.inverse_pinhole_matrix",+ "package": "kornia.geometry",+ "ref": "",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.camera.pinhole.scale_pinhole",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "pinhole.scale_pinhole",+ "package": "kornia.geometry",+ "ref": "",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "does not run eagerly with the probed inputs: NotImplementedError : ",+ "export": "n/a",+ "export_detail": "does not run eagerly with the probed inputs: NotImplementedError : ",+ "graph_breaks": 0,+ "name": "geometry.camera.pinhole.get_optical_pose_base",+ "note": "KORNIA BUG: function body is `raise NotImplementedError` (pinhole.py:628)",+ "onnx": "n/a",+ "onnx_detail": "does not run eagerly with the probed inputs: NotImplementedError : ",+ "operator": "pinhole.get_optical_pose_base",+ "package": "kornia.geometry",+ "ref": "",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "does not run eagerly with the probed inputs: NotImplementedError : ",+ "export": "n/a",+ "export_detail": "does not run eagerly with the probed inputs: NotImplementedError : ",+ "graph_breaks": 0,+ "name": "geometry.camera.pinhole.homography_i_H_ref",+ "note": "KORNIA BUG: calls get_optical_pose_base which is a NotImplementedError stub",+ "onnx": "n/a",+ "onnx_detail": "does not run eagerly with the probed inputs: NotImplementedError : ",+ "operator": "pinhole.homography_i_H_ref",+ "package": "kornia.geometry",+ "ref": "",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.camera.StereoCamera.reproject_disparity_to_3D",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "StereoCamera.reproject_disparity_to_3D",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.camera.stereo.StereoCamera.reproject_disparity_to_3D",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.camera.StereoCamera.Q",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "StereoCamera.Q",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.camera.stereo.StereoCamera.Q",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.camera.stereo.reproject_disparity_to_3D",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "stereo.reproject_disparity_to_3D",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.camera.stereo.reproject_disparity_to_3D",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.camera.project_points_z1",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "project_points_z1",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.camera.project_points_z1",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.camera.unproject_points_z1",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "unproject_points_z1",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.camera.unproject_points_z1",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.camera.unproject_points_z1[extension]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "unproject_points_z1",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.camera.unproject_points_z1",+ "section": "camera",+ "variant": "extension",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.camera.dx_project_points_z1",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "dx_project_points_z1",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.camera.dx_project_points_z1",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.camera.project_points_orthographic",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "project_points_orthographic",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.camera.project_points_orthographic",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.camera.unproject_points_orthographic",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "unproject_points_orthographic",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.camera.unproject_points_orthographic",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.camera.dx_project_points_orthographic",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "dx_project_points_orthographic",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.camera.dx_project_points_orthographic",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.camera.distort_points_affine",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "distort_points_affine",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.camera.distort_points_affine",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.camera.undistort_points_affine",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "undistort_points_affine",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.camera.undistort_points_affine",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.camera.dx_distort_points_affine",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "dx_distort_points_affine",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.camera.dx_distort_points_affine",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.camera.distort_points_kannala_brandt",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "distort_points_kannala_brandt",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.camera.distort_points_kannala_brandt",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.camera.undistort_points_kannala_brandt",+ "note": "10 unrolled Gauss-Newton iters",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "undistort_points_kannala_brandt",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.camera.undistort_points_kannala_brandt",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.camera.dx_distort_points_kannala_brandt",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "dx_distort_points_kannala_brandt",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.camera.dx_distort_points_kannala_brandt",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.calibration.distort_points",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "distort_points",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.calibration.distort_points",+ "section": "calibration",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.calibration.distort_points[14]",+ "note": "14-coeff model incl. tilt",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "distort_points",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.calibration.distort_points",+ "section": "calibration",+ "variant": "14",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.calibration.distort_points[new_K]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "distort_points",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.calibration.distort_points",+ "section": "calibration",+ "variant": "new_K",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.calibration.undistort_points",+ "note": "num_iters=5 default",+ "onnx": "fail",+ "onnx_detail": "exporter bug: onnxscript emits an unsorted graph (the eager result is correct)",+ "operator": "undistort_points",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.calibration.undistort_points",+ "section": "calibration",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.calibration.undistort_points[14]",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "exporter bug: onnxscript emits an unsorted graph (the eager result is correct)",+ "operator": "undistort_points",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.calibration.undistort_points",+ "section": "calibration",+ "variant": "14",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.calibration.undistort_image",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "undistort_image",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.calibration.undistort_image",+ "section": "calibration",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.calibration.undistort_image[batch>1]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "undistort_image",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.calibration.undistort_image",+ "section": "calibration",+ "variant": "batch>1",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.calibration.tilt_projection",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "tilt_projection",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.calibration.tilt_projection",+ "section": "calibration",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.calibration.tilt_projection[inverse]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "tilt_projection",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.calibration.tilt_projection",+ "section": "calibration",+ "variant": "inverse",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "2 graph breaks: generic_jump TensorVariable()",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 2,+ "name": "geometry.calibration.solve_pnp_dlt",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "solve_pnp_dlt",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.calibration.solve_pnp_dlt",+ "section": "calibration",+ "variant": "",+ "where": "kornia/geometry/calibration/pnp.py:168"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "2 graph breaks: generic_jump TensorVariable()",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 2,+ "name": "geometry.calibration.solve_pnp_dlt[weights]",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "solve_pnp_dlt",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.calibration.solve_pnp_dlt",+ "section": "calibration",+ "variant": "weights",+ "where": "kornia/geometry/calibration/pnp.py:168"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.depth.depth_to_3d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "depth_to_3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.depth.depth_to_3d",+ "section": "depth",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.depth.depth_to_3d[normalize]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "depth_to_3d",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.depth.depth_to_3d",+ "section": "depth",+ "variant": "normalize",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.depth.depth_to_3d_v2",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "depth_to_3d_v2",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.depth.depth_to_3d_v2",+ "section": "depth",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.depth.depth_to_3d_v2[xyz_grid]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "depth_to_3d_v2",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.depth.depth_to_3d_v2",+ "section": "depth",+ "variant": "xyz_grid",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.depth.unproject_meshgrid",+ "note": "H,W baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "unproject_meshgrid",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.depth.unproject_meshgrid",+ "section": "depth",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.depth.depth_to_normals",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "depth_to_normals",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.depth.depth_to_normals",+ "section": "depth",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.depth.depth_from_disparity",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "depth_from_disparity",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.depth.depth_from_disparity",+ "section": "depth",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.depth.depth_from_disparity[float]",+ "note": "baseline/focal baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "depth_from_disparity",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.depth.depth_from_disparity",+ "section": "depth",+ "variant": "float",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.depth.depth_from_plane_equation",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "depth_from_plane_equation",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.depth.depth_from_plane_equation",+ "section": "depth",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.depth.warp_frame_depth",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "warp_frame_depth",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.depth.warp_frame_depth",+ "section": "depth",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.depth.DepthWarper",+ "note": "cameras baked in module; H,W baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "DepthWarper",+ "package": "kornia.geometry",+ "ref": "",+ "section": "depth",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.depth.DepthWarper.warp_grid",+ "note": "cameras baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "DepthWarper.warp_grid",+ "package": "kornia.geometry",+ "ref": "",+ "section": "depth",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.depth.DepthWarper.compute_subpixel_step",+ "note": "fully constant graph",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "DepthWarper.compute_subpixel_step",+ "package": "kornia.geometry",+ "ref": "",+ "section": "depth",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.depth.depth_warp",+ "note": "cameras + H,W baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "depth_warp",+ "package": "kornia.geometry",+ "ref": "",+ "section": "depth",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.So3.exp.matrix",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "So3.exp.matrix",+ "package": "kornia.geometry",+ "ref": "",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.So3.exp.q",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "So3.exp.q",+ "package": "kornia.geometry",+ "ref": "",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.So3.log",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "So3.log",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.So3.log",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.So3.from_matrix",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "So3.from_matrix",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.So3.from_matrix",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.So3.from_wxyz",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "So3.from_wxyz",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.So3.from_wxyz",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.So3.inverse",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "So3.inverse",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.So3.inverse",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.So3.mul",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "So3.mul",+ "package": "kornia.geometry",+ "ref": "",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "2 graph breaks",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 2,+ "name": "geometry.liegroup.So3.mul[point]",+ "note": "rotate a (B,3) point",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "So3.mul",+ "package": "kornia.geometry",+ "ref": "",+ "section": "liegroup",+ "variant": "point",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.So3.adjoint",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "So3.adjoint",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.So3.adjoint",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.So3.hat",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "So3.hat",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.So3.hat",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.So3.vee",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "So3.vee",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.So3.vee",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.So3.Jl",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "So3.Jl",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.So3.Jl",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.So3.Jr",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "So3.Jr",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.So3.Jr",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.So3.left_jacobian",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "So3.left_jacobian",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.So3.left_jacobian",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.So3.right_jacobian",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "So3.right_jacobian",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.So3.right_jacobian",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.So3.rot_x",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "So3.rot_x",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.So3.rot_x",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.So3.rot_y",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "So3.rot_y",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.So3.rot_y",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.So3.rot_z",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "So3.rot_z",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.So3.rot_z",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.So3.random",+ "note": "random sampling in graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "So3.random",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.So3.random",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.So3.identity",+ "note": "fully constant graph",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "So3.identity",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.So3.identity",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.Se3.exp.matrix",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Se3.exp.matrix",+ "package": "kornia.geometry",+ "ref": "",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.Se3.log",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Se3.log",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.Se3.log",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.Se3.from_matrix",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Se3.from_matrix",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.Se3.from_matrix",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.Se3.from_qxyz",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Se3.from_qxyz",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.Se3.from_qxyz",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "5 graph breaks: step_unsupported",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 5,+ "name": "geometry.liegroup.Se3.inverse",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Se3.inverse",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.Se3.inverse",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "5 graph breaks: step_unsupported",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 5,+ "name": "geometry.liegroup.Se3.mul",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Se3.mul",+ "package": "kornia.geometry",+ "ref": "",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "2 graph breaks",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 2,+ "name": "geometry.liegroup.Se3.mul[point]",+ "note": "transform a (B,3) point",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Se3.mul",+ "package": "kornia.geometry",+ "ref": "",+ "section": "liegroup",+ "variant": "point",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.Se3.adjoint",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Se3.adjoint",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.Se3.adjoint",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.Se3.hat",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Se3.hat",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.Se3.hat",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.Se3.vee",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Se3.vee",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.Se3.vee",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.Se3.trans",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Se3.trans",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.Se3.trans",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.Se3.rot_x",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Se3.rot_x",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.Se3.rot_x",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.Se3.random",+ "note": "random sampling in graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "Se3.random",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.Se3.random",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.So2.exp.matrix",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "So2.exp.matrix",+ "package": "kornia.geometry",+ "ref": "",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.So2.exp.z",+ "note": "complex output",+ "onnx": "mismatch",+ "onnx_detail": "runs, but the result differs from eager: out0: shape (2,) vs (2, 2)",+ "operator": "So2.exp.z",+ "package": "kornia.geometry",+ "ref": "",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.So2.log",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "So2.log",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.So2.log",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.So2.from_matrix",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "So2.from_matrix",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.So2.from_matrix",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.So2.inverse",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for complex reciprocal",+ "operator": "So2.inverse",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.So2.inverse",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.So2.mul",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "So2.mul",+ "package": "kornia.geometry",+ "ref": "",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "2 graph breaks",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 2,+ "name": "geometry.liegroup.So2.mul[point]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "So2.mul",+ "package": "kornia.geometry",+ "ref": "",+ "section": "liegroup",+ "variant": "point",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.So2.adjoint",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "So2.adjoint",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.So2.adjoint",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.So2.hat",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "So2.hat",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.So2.hat",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.So2.vee",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "So2.vee",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.So2.vee",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.So2.random",+ "note": "random sampling in graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "So2.random",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.So2.random",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.Se2.exp.matrix",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Se2.exp.matrix",+ "package": "kornia.geometry",+ "ref": "",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.Se2.log",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Se2.log",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.Se2.log",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.Se2.from_matrix",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Se2.from_matrix",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.Se2.from_matrix",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "5 graph breaks: step_unsupported",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 5,+ "name": "geometry.liegroup.Se2.inverse",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for complex reciprocal",+ "operator": "Se2.inverse",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.Se2.inverse",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "5 graph breaks: step_unsupported",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 5,+ "name": "geometry.liegroup.Se2.mul",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Se2.mul",+ "package": "kornia.geometry",+ "ref": "",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "2 graph breaks",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 2,+ "name": "geometry.liegroup.Se2.mul[point]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Se2.mul",+ "package": "kornia.geometry",+ "ref": "",+ "section": "liegroup",+ "variant": "point",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.Se2.adjoint",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Se2.adjoint",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.Se2.adjoint",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.Se2.hat",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Se2.hat",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.Se2.hat",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.Se2.vee",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Se2.vee",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.Se2.vee",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.Se2.trans",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Se2.trans",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.Se2.trans",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.liegroup.Se2.random",+ "note": "random sampling in graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "Se2.random",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.liegroup.Se2.random",+ "section": "liegroup",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.quaternion.Quaternion.matrix",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Quaternion.matrix",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.quaternion.Quaternion.matrix",+ "section": "quaternion",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.quaternion.Quaternion.from_matrix",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Quaternion.from_matrix",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.quaternion.Quaternion.from_matrix",+ "section": "quaternion",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.quaternion.Quaternion.from_axis_angle",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Quaternion.from_axis_angle",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.quaternion.Quaternion.from_axis_angle",+ "section": "quaternion",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.quaternion.Quaternion.to_axis_angle",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Quaternion.to_axis_angle",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.quaternion.Quaternion.to_axis_angle",+ "section": "quaternion",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.quaternion.Quaternion.from_euler",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Quaternion.from_euler",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.quaternion.Quaternion.from_euler",+ "section": "quaternion",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.quaternion.Quaternion.to_euler",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Quaternion.to_euler",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.quaternion.Quaternion.to_euler",+ "section": "quaternion",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.quaternion.Quaternion.norm",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Quaternion.norm",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.quaternion.Quaternion.norm",+ "section": "quaternion",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.quaternion.Quaternion.squared_norm",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Quaternion.squared_norm",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.quaternion.Quaternion.squared_norm",+ "section": "quaternion",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.quaternion.Quaternion.normalize",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Quaternion.normalize",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.quaternion.Quaternion.normalize",+ "section": "quaternion",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.quaternion.Quaternion.conj",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Quaternion.conj",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.quaternion.Quaternion.conj",+ "section": "quaternion",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "3 graph breaks",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 3,+ "name": "geometry.quaternion.Quaternion.inv",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Quaternion.inv",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.quaternion.Quaternion.inv",+ "section": "quaternion",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.quaternion.Quaternion.mul",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Quaternion.mul",+ "package": "kornia.geometry",+ "ref": "",+ "section": "quaternion",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "1 graph break",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 1,+ "name": "geometry.quaternion.Quaternion.mul[scalar-tensor]",+ "note": "scalar (B,) tensor -> scalar quaternion",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Quaternion.mul",+ "package": "kornia.geometry",+ "ref": "",+ "section": "quaternion",+ "variant": "scalar-tensor",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.quaternion.Quaternion.add",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Quaternion.add",+ "package": "kornia.geometry",+ "ref": "",+ "section": "quaternion",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.quaternion.Quaternion.sub",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Quaternion.sub",+ "package": "kornia.geometry",+ "ref": "",+ "section": "quaternion",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.quaternion.Quaternion.neg",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Quaternion.neg",+ "package": "kornia.geometry",+ "ref": "",+ "section": "quaternion",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "4 graph breaks",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 4,+ "name": "geometry.quaternion.Quaternion.truediv",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Quaternion.truediv",+ "package": "kornia.geometry",+ "ref": "",+ "section": "quaternion",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.quaternion.Quaternion.pow",+ "note": "t=0.5 baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Quaternion.pow",+ "package": "kornia.geometry",+ "ref": "",+ "section": "quaternion",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "6 graph breaks: step_unsupported",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 6,+ "name": "geometry.quaternion.Quaternion.slerp",+ "note": "t=0.3 baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Quaternion.slerp",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.quaternion.Quaternion.slerp",+ "section": "quaternion",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.quaternion.Quaternion.polar_angle",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Quaternion.polar_angle",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.quaternion.Quaternion.polar_angle",+ "section": "quaternion",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.quaternion.Quaternion.properties",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Quaternion.properties",+ "package": "kornia.geometry",+ "ref": "",+ "section": "quaternion",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.quaternion.Quaternion.random",+ "note": "random sampling in graph",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "Quaternion.random",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.quaternion.Quaternion.random",+ "section": "quaternion",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.quaternion.Quaternion.identity",+ "note": "fully constant graph",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Quaternion.identity",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.quaternion.Quaternion.identity",+ "section": "quaternion",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "3 graph breaks: a tensor value is read back into Python (.item() / bool()) during the forward",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 3,+ "name": "geometry.quaternion.average_quaternions",+ "note": "eigen-decomposition of 4x4",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "average_quaternions",+ "package": "kornia.geometry",+ "ref": "",+ "section": "quaternion",+ "variant": "",+ "where": "kornia/geometry/quaternion.py:684"+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 13,+ "name": "geometry.ransac.RANSAC[homography,no-seed]",+ "note": "diagnostic: seed=None avoids torch.Generator; shows next blocker",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "RANSAC",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.ransac.RANSAC",+ "section": "ransac",+ "variant": "homography,no-seed",+ "where": "kornia/geometry/ransac.py:376"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.camera.StereoCamera.reproject_disparity_to_3D[baked-cams]",+ "note": "diagnostic: cameras baked as constants",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "StereoCamera.reproject_disparity_to_3D",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.camera.stereo.StereoCamera.reproject_disparity_to_3D",+ "section": "camera",+ "variant": "baked-cams",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "fail",+ "export_detail": "a torch.Generator argument cannot be captured",+ "graph_breaks": 22,+ "name": "geometry.ransac.RANSAC[homography]",+ "note": "sampling inside; max_iter=3; 12 inliers + 20 outliers",+ "onnx": "fail",+ "onnx_detail": "a torch.Generator argument cannot be captured",+ "operator": "RANSAC",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.ransac.RANSAC",+ "section": "ransac",+ "variant": "homography",+ "where": "kornia/geometry/ransac.py:163"+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "fail",+ "export_detail": "a torch.Generator argument cannot be captured",+ "graph_breaks": 18,+ "name": "geometry.ransac.RANSAC[fundamental]",+ "note": "sampling inside; 8pt inside",+ "onnx": "fail",+ "onnx_detail": "a torch.Generator argument cannot be captured",+ "operator": "RANSAC",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.ransac.RANSAC",+ "section": "ransac",+ "variant": "fundamental",+ "where": "kornia/geometry/ransac.py:163"+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "fail",+ "export_detail": "a torch.Generator argument cannot be captured",+ "graph_breaks": 50,+ "name": "geometry.ransac.RANSAC[fundamental_7pt]",+ "note": "sampling inside; 7pt inside",+ "onnx": "fail",+ "onnx_detail": "a torch.Generator argument cannot be captured",+ "operator": "RANSAC",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.ransac.RANSAC",+ "section": "ransac",+ "variant": "fundamental_7pt",+ "where": "kornia/geometry/ransac.py:163"+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "fail",+ "export_detail": "a torch.Generator argument cannot be captured",+ "graph_breaks": 16,+ "name": "geometry.ransac.RANSAC[homography_from_linesegments]",+ "note": "sampling inside",+ "onnx": "fail",+ "onnx_detail": "a torch.Generator argument cannot be captured",+ "operator": "RANSAC",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.ransac.RANSAC",+ "section": "ransac",+ "variant": "homography_from_linesegments",+ "where": "kornia/geometry/ransac.py:163"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.ransac.RANSAC.estimate_model_from_minsample",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.lu_factor",+ "operator": "RANSAC.estimate_model_from_minsample",+ "package": "kornia.geometry",+ "ref": "",+ "section": "ransac",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "2 graph breaks: a tensor value is read back into Python (.item() / bool()) during the forward",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 2,+ "name": "geometry.ransac.RANSAC.verify",+ "note": "inl_th baked; returns (inliers, models, score float, ...) -> only tensors",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "RANSAC.verify",+ "package": "kornia.geometry",+ "ref": "",+ "section": "ransac",+ "variant": "",+ "where": "kornia/geometry/ransac.py:254"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.solvers.solve_quadratic",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "solve_quadratic",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.solvers.solve_quadratic",+ "section": "solvers",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "23 graph breaks: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 23,+ "name": "geometry.solvers.solve_cubic",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "solve_cubic",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.solvers.solve_cubic",+ "section": "solvers",+ "variant": "",+ "where": "kornia/geometry/solvers/polynomial_solver.py:135"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "29 graph breaks: a Python branch (if / while) tests tensor values at run time",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 29,+ "name": "geometry.solvers.solve_quartic",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "solve_quartic",+ "package": "kornia.geometry",+ "ref": "",+ "section": "solvers",+ "variant": "",+ "where": "kornia/geometry/solvers/polynomial_solver.py:253"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.solvers.multiply_deg_one_poly",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "multiply_deg_one_poly",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.solvers.multiply_deg_one_poly",+ "section": "solvers",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.solvers.multiply_deg_two_one_poly",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "multiply_deg_two_one_poly",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.solvers.multiply_deg_two_one_poly",+ "section": "solvers",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.solvers.determinant_to_polynomial",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "determinant_to_polynomial",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.solvers.determinant_to_polynomial",+ "section": "solvers",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "geometry.solvers.null_vector_3x4",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "null_vector_3x4",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.solvers.null_vector_3x4",+ "section": "solvers",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "file I/O (writes PLY to disk)",+ "export": "n/a",+ "export_detail": "file I/O (writes PLY to disk)",+ "graph_breaks": 0,+ "name": "geometry.pointcloud.save_pointcloud_ply",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "file I/O (writes PLY to disk)",+ "operator": "save_pointcloud_ply",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.pointcloud.save_pointcloud_ply",+ "section": "pointcloud",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "file I/O (reads PLY from disk)",+ "export": "n/a",+ "export_detail": "file I/O (reads PLY from disk)",+ "graph_breaks": 0,+ "name": "geometry.pointcloud.load_pointcloud_ply",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "file I/O (reads PLY from disk)",+ "operator": "load_pointcloud_ply",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.pointcloud.load_pointcloud_ply",+ "section": "pointcloud",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "file I/O (writes PLY to disk)",+ "export": "n/a",+ "export_detail": "file I/O (writes PLY to disk)",+ "graph_breaks": 0,+ "name": "geometry.pointcloud.save_pointcloud_ply_binary",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "file I/O (writes PLY to disk)",+ "operator": "save_pointcloud_ply_binary",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.pointcloud.save_pointcloud_ply_binary",+ "section": "pointcloud",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "file I/O (reads PLY from disk)",+ "export": "n/a",+ "export_detail": "file I/O (reads PLY from disk)",+ "graph_breaks": 0,+ "name": "geometry.pointcloud.load_pointcloud_ply_binary",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "file I/O (reads PLY from disk)",+ "operator": "load_pointcloud_ply_binary",+ "package": "kornia.geometry",+ "ref": "kornia.geometry.pointcloud.load_pointcloud_ply_binary",+ "section": "pointcloud",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.RgbToGrayscale",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RgbToGrayscale",+ "package": "kornia.color",+ "ref": "kornia.color.RgbToGrayscale",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.BgrToGrayscale",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "BgrToGrayscale",+ "package": "kornia.color",+ "ref": "kornia.color.BgrToGrayscale",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.GrayscaleToRgb",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "GrayscaleToRgb",+ "package": "kornia.color",+ "ref": "kornia.color.GrayscaleToRgb",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.RgbToBgr",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RgbToBgr",+ "package": "kornia.color",+ "ref": "kornia.color.RgbToBgr",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.BgrToRgb",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "BgrToRgb",+ "package": "kornia.color",+ "ref": "kornia.color.BgrToRgb",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.RgbToRgba",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RgbToRgba",+ "package": "kornia.color",+ "ref": "kornia.color.RgbToRgba",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.BgrToRgba",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "BgrToRgba",+ "package": "kornia.color",+ "ref": "kornia.color.BgrToRgba",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.RgbaToRgb",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RgbaToRgb",+ "package": "kornia.color",+ "ref": "kornia.color.RgbaToRgb",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.RgbaToBgr",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RgbaToBgr",+ "package": "kornia.color",+ "ref": "kornia.color.RgbaToBgr",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.RgbToLinearRgb",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RgbToLinearRgb",+ "package": "kornia.color",+ "ref": "kornia.color.RgbToLinearRgb",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.LinearRgbToRgb",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "LinearRgbToRgb",+ "package": "kornia.color",+ "ref": "kornia.color.LinearRgbToRgb",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.RgbToHsv",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RgbToHsv",+ "package": "kornia.color",+ "ref": "kornia.color.RgbToHsv",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.HsvToRgb",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "HsvToRgb",+ "package": "kornia.color",+ "ref": "kornia.color.HsvToRgb",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.RgbToHls",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RgbToHls",+ "package": "kornia.color",+ "ref": "kornia.color.RgbToHls",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.HlsToRgb",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "HlsToRgb",+ "package": "kornia.color",+ "ref": "kornia.color.HlsToRgb",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.RgbToLab",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RgbToLab",+ "package": "kornia.color",+ "ref": "kornia.color.RgbToLab",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.RgbToLuv",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RgbToLuv",+ "package": "kornia.color",+ "ref": "kornia.color.RgbToLuv",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.RgbToXyz",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RgbToXyz",+ "package": "kornia.color",+ "ref": "kornia.color.RgbToXyz",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.XyzToRgb",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "XyzToRgb",+ "package": "kornia.color",+ "ref": "kornia.color.XyzToRgb",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.RgbToYcbcr",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RgbToYcbcr",+ "package": "kornia.color",+ "ref": "kornia.color.RgbToYcbcr",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.YcbcrToRgb",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "YcbcrToRgb",+ "package": "kornia.color",+ "ref": "kornia.color.YcbcrToRgb",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.RgbToYuv",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RgbToYuv",+ "package": "kornia.color",+ "ref": "kornia.color.RgbToYuv",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.YuvToRgb",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "YuvToRgb",+ "package": "kornia.color",+ "ref": "kornia.color.YuvToRgb",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.RgbToYuv420",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RgbToYuv420",+ "package": "kornia.color",+ "ref": "kornia.color.RgbToYuv420",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.RgbToYuv422",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RgbToYuv422",+ "package": "kornia.color",+ "ref": "kornia.color.RgbToYuv422",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.Sepia",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Sepia",+ "package": "kornia.color",+ "ref": "kornia.color.Sepia",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.RgbToRgb255",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RgbToRgb255",+ "package": "kornia.color",+ "ref": "kornia.color.RgbToRgb255",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.Rgb255ToRgb",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Rgb255ToRgb",+ "package": "kornia.color",+ "ref": "kornia.color.Rgb255ToRgb",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.NormalsToRgb255",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "NormalsToRgb255",+ "package": "kornia.color",+ "ref": "kornia.color.NormalsToRgb255",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.Rgb255ToNormals",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Rgb255ToNormals",+ "package": "kornia.color",+ "ref": "kornia.color.Rgb255ToNormals",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.RawToRgb",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RawToRgb",+ "package": "kornia.color",+ "ref": "kornia.color.RawToRgb",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.RgbToRaw",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RgbToRaw",+ "package": "kornia.color",+ "ref": "kornia.color.RgbToRaw",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.RawToRgb2x2Downscaled",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RawToRgb2x2Downscaled",+ "package": "kornia.color",+ "ref": "kornia.color.RawToRgb2x2Downscaled",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.RgbToGrayscale[weights]",+ "note": "rgb_weights given at construction -> constant",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RgbToGrayscale",+ "package": "kornia.color",+ "ref": "kornia.color.RgbToGrayscale",+ "section": "",+ "variant": "weights",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.LabToRgb",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "LabToRgb",+ "package": "kornia.color",+ "ref": "kornia.color.LabToRgb",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.LuvToRgb",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "LuvToRgb",+ "package": "kornia.color",+ "ref": "kornia.color.LuvToRgb",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.Yuv420ToRgb",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Yuv420ToRgb",+ "package": "kornia.color",+ "ref": "kornia.color.Yuv420ToRgb",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.Yuv422ToRgb",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Yuv422ToRgb",+ "package": "kornia.color",+ "ref": "kornia.color.Yuv422ToRgb",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.bgr_to_grayscale",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "bgr_to_grayscale",+ "package": "kornia.color",+ "ref": "kornia.color.bgr_to_grayscale",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.rgb_to_y",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "rgb_to_y",+ "package": "kornia.color",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.bgr_to_rgba",+ "note": "alpha baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "bgr_to_rgba",+ "package": "kornia.color",+ "ref": "kornia.color.bgr_to_rgba",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.bgr_to_rgba[tensor_alpha]",+ "note": "alpha as live tensor",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "bgr_to_rgba",+ "package": "kornia.color",+ "ref": "kornia.color.bgr_to_rgba",+ "section": "",+ "variant": "tensor_alpha",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.rgba_to_rgb",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "rgba_to_rgb",+ "package": "kornia.color",+ "ref": "kornia.color.rgba_to_rgb",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.rgba_to_rgb[bg]",+ "note": "background color live tensor (1,3,1,1)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "rgba_to_rgb",+ "package": "kornia.color",+ "ref": "kornia.color.rgba_to_rgb",+ "section": "",+ "variant": "bg",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.rgba_to_rgb[bg_tuple]",+ "note": "tuple bg baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "rgba_to_rgb",+ "package": "kornia.color",+ "ref": "kornia.color.rgba_to_rgb",+ "section": "",+ "variant": "bg_tuple",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.rgba_to_bgr",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "rgba_to_bgr",+ "package": "kornia.color",+ "ref": "kornia.color.rgba_to_bgr",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.rgb_to_rgb255",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "rgb_to_rgb255",+ "package": "kornia.color",+ "ref": "kornia.color.rgb_to_rgb255",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.rgb255_to_rgb",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "rgb255_to_rgb",+ "package": "kornia.color",+ "ref": "kornia.color.rgb255_to_rgb",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.normals_to_rgb255",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "normals_to_rgb255",+ "package": "kornia.color",+ "ref": "kornia.color.normals_to_rgb255",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.rgb255_to_normals",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "rgb255_to_normals",+ "package": "kornia.color",+ "ref": "kornia.color.rgb255_to_normals",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.sepia_from_rgb",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "sepia_from_rgb",+ "package": "kornia.color",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.sepia_from_rgb[no_rescale]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "sepia_from_rgb",+ "package": "kornia.color",+ "ref": "",+ "section": "",+ "variant": "no_rescale",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.rgb_to_yuv420",+ "note": "returns (y, uv)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "rgb_to_yuv420",+ "package": "kornia.color",+ "ref": "kornia.color.rgb_to_yuv420",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.rgb_to_yuv422",+ "note": "returns (y, uv)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "rgb_to_yuv422",+ "package": "kornia.color",+ "ref": "kornia.color.rgb_to_yuv422",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.yuv420_to_rgb",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "yuv420_to_rgb",+ "package": "kornia.color",+ "ref": "kornia.color.yuv420_to_rgb",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.yuv422_to_rgb",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "yuv422_to_rgb",+ "package": "kornia.color",+ "ref": "kornia.color.yuv422_to_rgb",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.raw_to_rgb[BG]",+ "note": "cfa baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "raw_to_rgb",+ "package": "kornia.color",+ "ref": "kornia.color.raw_to_rgb",+ "section": "",+ "variant": "BG",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.raw_to_rgb[GB]",+ "note": "cfa baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "raw_to_rgb",+ "package": "kornia.color",+ "ref": "kornia.color.raw_to_rgb",+ "section": "",+ "variant": "GB",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.raw_to_rgb[RG]",+ "note": "cfa baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "raw_to_rgb",+ "package": "kornia.color",+ "ref": "kornia.color.raw_to_rgb",+ "section": "",+ "variant": "RG",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.raw_to_rgb[GR]",+ "note": "cfa baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "raw_to_rgb",+ "package": "kornia.color",+ "ref": "kornia.color.raw_to_rgb",+ "section": "",+ "variant": "GR",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.raw_to_rgb[batch]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "raw_to_rgb",+ "package": "kornia.color",+ "ref": "kornia.color.raw_to_rgb",+ "section": "",+ "variant": "batch",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.rgb_to_raw",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "rgb_to_raw",+ "package": "kornia.color",+ "ref": "kornia.color.rgb_to_raw",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.rgb_to_raw[GR]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "rgb_to_raw",+ "package": "kornia.color",+ "ref": "kornia.color.rgb_to_raw",+ "section": "",+ "variant": "GR",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.raw_to_rgb_2x2_downscaled",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "raw_to_rgb_2x2_downscaled",+ "package": "kornia.color",+ "ref": "kornia.color.raw_to_rgb_2x2_downscaled",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.raw_to_rgb_2x2_downscaled[RG]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "raw_to_rgb_2x2_downscaled",+ "package": "kornia.color",+ "ref": "kornia.color.raw_to_rgb_2x2_downscaled",+ "section": "",+ "variant": "RG",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.rgb_to_lab[batch]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "rgb_to_lab",+ "package": "kornia.color",+ "ref": "kornia.color.rgb_to_lab",+ "section": "",+ "variant": "batch",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.rgb_to_hsv[eps]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "rgb_to_hsv",+ "package": "kornia.color",+ "ref": "kornia.color.rgb_to_hsv",+ "section": "",+ "variant": "eps",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.lab_to_rgb[noclip]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "lab_to_rgb",+ "package": "kornia.color",+ "ref": "kornia.color.lab_to_rgb",+ "section": "",+ "variant": "noclip",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.ApplyColorMap",+ "note": "viridis/64",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "ApplyColorMap",+ "package": "kornia.color",+ "ref": "kornia.color.ApplyColorMap",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.ApplyColorMap[jet16,int]",+ "note": "jet/16, int64 input 0..255",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "ApplyColorMap",+ "package": "kornia.color",+ "ref": "kornia.color.ApplyColorMap",+ "section": "",+ "variant": "jet16,int",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.apply_colormap[autumn]",+ "note": "colormap object baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "apply_colormap",+ "package": "kornia.color",+ "ref": "kornia.color.apply_colormap",+ "section": "",+ "variant": "autumn",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.apply_colormap[custom_rgb]",+ "note": "custom 2-stop map, 8 colors",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "apply_colormap",+ "package": "kornia.color",+ "ref": "kornia.color.apply_colormap",+ "section": "",+ "variant": "custom_rgb",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "color.apply_colormap[batch]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "apply_colormap",+ "package": "kornia.color",+ "ref": "kornia.color.apply_colormap",+ "section": "",+ "variant": "batch",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "ColorMap is a lookup-table container (constructor only), covered via apply_colormap",+ "export": "n/a",+ "export_detail": "ColorMap is a lookup-table container (constructor only), covered via apply_colormap",+ "graph_breaks": 0,+ "name": "color.ColorMap",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "ColorMap is a lookup-table container (constructor only), covered via apply_colormap",+ "operator": "ColorMap",+ "package": "kornia.color",+ "ref": "kornia.color.ColorMap",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "Enum",+ "export": "n/a",+ "export_detail": "Enum",+ "graph_breaks": 0,+ "name": "color.ColorMapType",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "Enum",+ "operator": "ColorMapType",+ "package": "kornia.color",+ "ref": "kornia.color.ColorMapType",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "Enum",+ "export": "n/a",+ "export_detail": "Enum",+ "graph_breaks": 0,+ "name": "color.CFA",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "Enum",+ "operator": "CFA",+ "package": "kornia.color",+ "ref": "kornia.color.CFA",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "type alias",+ "export": "n/a",+ "export_detail": "type alias",+ "graph_breaks": 0,+ "name": "color.RGBColor",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "type alias",+ "operator": "RGBColor",+ "package": "kornia.color",+ "ref": "kornia.color.RGBColor",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.Normalize",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Normalize",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.Normalize",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.Normalize[float]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Normalize",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.Normalize",+ "section": "",+ "variant": "float",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.Denormalize",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Denormalize",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.Denormalize",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.normalize[live_stats]",+ "note": "mean/std as live tensors",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "normalize",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.normalize",+ "section": "",+ "variant": "live_stats",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.denormalize[live_stats]",+ "note": "mean/std as live tensors",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "denormalize",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.denormalize",+ "section": "",+ "variant": "live_stats",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.AddWeighted",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "AddWeighted",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.AddWeighted",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.AddWeighted[tensor]",+ "note": "tensor alpha/beta/gamma must equal src shape (kornia check); constructed -> constants",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "AddWeighted",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.AddWeighted",+ "section": "",+ "variant": "tensor",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.add_weighted[live_weights]",+ "note": "alpha/beta/gamma live tensors (must be full src shape)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "add_weighted",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.add_weighted",+ "section": "",+ "variant": "live_weights",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.AdjustBrightness",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "AdjustBrightness",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.AdjustBrightness",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.AdjustBrightnessAccumulative",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "AdjustBrightnessAccumulative",+ "package": "kornia.enhance",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.adjust_brightness_accumulative",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "adjust_brightness_accumulative",+ "package": "kornia.enhance",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.adjust_brightness_accumulative[live]",+ "note": "factor live",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "adjust_brightness_accumulative",+ "package": "kornia.enhance",+ "ref": "",+ "section": "",+ "variant": "live",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.AdjustContrast",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "AdjustContrast",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.AdjustContrast",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.AdjustContrastWithMeanSubtraction",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "AdjustContrastWithMeanSubtraction",+ "package": "kornia.enhance",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.AdjustGamma",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "AdjustGamma",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.AdjustGamma",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.AdjustHue",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "AdjustHue",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.AdjustHue",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.AdjustSaturation",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "AdjustSaturation",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.AdjustSaturation",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.AdjustSaturationWithGraySubtraction",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "AdjustSaturationWithGraySubtraction",+ "package": "kornia.enhance",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.adjust_saturation_with_gray_subtraction",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "adjust_saturation_with_gray_subtraction",+ "package": "kornia.enhance",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.adjust_saturation_with_gray_subtraction[live]",+ "note": "factor live",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "adjust_saturation_with_gray_subtraction",+ "package": "kornia.enhance",+ "ref": "",+ "section": "",+ "variant": "live",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.adjust_saturation_raw",+ "note": "HSV input",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "adjust_saturation_raw",+ "package": "kornia.enhance",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.adjust_hue_raw",+ "note": "HSV input",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "adjust_hue_raw",+ "package": "kornia.enhance",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.adjust_hue_raw[live]",+ "note": "factor live",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "adjust_hue_raw",+ "package": "kornia.enhance",+ "ref": "",+ "section": "",+ "variant": "live",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.AdjustLog",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "AdjustLog",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.AdjustLog",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.AdjustLog[inv]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "AdjustLog",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.AdjustLog",+ "section": "",+ "variant": "inv",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.AdjustSigmoid",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "AdjustSigmoid",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.AdjustSigmoid",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.AdjustSigmoid[inv]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "AdjustSigmoid",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.AdjustSigmoid",+ "section": "",+ "variant": "inv",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.Invert",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Invert",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.Invert",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.Invert[max_val]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Invert",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.Invert",+ "section": "",+ "variant": "max_val",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.Rescale",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Rescale",+ "package": "kornia.enhance",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.Threshold",+ "note": "THRESH_BINARY",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Threshold",+ "package": "kornia.enhance",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.threshold",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "threshold",+ "package": "kornia.enhance",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.threshold[live]",+ "note": "thresh/maxval live",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "threshold",+ "package": "kornia.enhance",+ "ref": "",+ "section": "",+ "variant": "live",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.threshold[THRESH_BINARY_INV]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "threshold",+ "package": "kornia.enhance",+ "ref": "",+ "section": "",+ "variant": "THRESH_BINARY_INV",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.threshold[THRESH_TRUNC]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "threshold",+ "package": "kornia.enhance",+ "ref": "",+ "section": "",+ "variant": "THRESH_TRUNC",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.threshold[THRESH_TOZERO]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "threshold",+ "package": "kornia.enhance",+ "ref": "",+ "section": "",+ "variant": "THRESH_TOZERO",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.threshold[THRESH_TOZERO_INV]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "threshold",+ "package": "kornia.enhance",+ "ref": "",+ "section": "",+ "variant": "THRESH_TOZERO_INV",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "does not run eagerly with the probed inputs: NotImplementedError : THRESH_OTSU is not implemented yet. Please use a fixed threshold type.",+ "export": "n/a",+ "export_detail": "does not run eagerly with the probed inputs: NotImplementedError : THRESH_OTSU is not implemented yet. Please use a fixed threshold type.",+ "graph_breaks": 0,+ "name": "enhance.threshold[THRESH_OTSU]",+ "note": "THRESH_OTSU raises NotImplementedError in kornia (eager-fail is kornia's, not the spec)",+ "onnx": "n/a",+ "onnx_detail": "does not run eagerly with the probed inputs: NotImplementedError : THRESH_OTSU is not implemented yet. Please use a fixed threshold type.",+ "operator": "threshold",+ "package": "kornia.enhance",+ "ref": "",+ "section": "",+ "variant": "THRESH_OTSU",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "Enum",+ "export": "n/a",+ "export_detail": "Enum",+ "graph_breaks": 0,+ "name": "enhance.ThresholdType",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "Enum",+ "operator": "ThresholdType",+ "package": "kornia.enhance",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.IntegralImage",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "IntegralImage",+ "package": "kornia.enhance",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.IntegralTensor",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "IntegralTensor",+ "package": "kornia.enhance",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.integral_image",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "integral_image",+ "package": "kornia.enhance",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.integral_tensor",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "integral_tensor",+ "package": "kornia.enhance",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.integral_tensor[3d]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "integral_tensor",+ "package": "kornia.enhance",+ "ref": "",+ "section": "",+ "variant": "3d",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.shift_rgb",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "shift_rgb",+ "package": "kornia.enhance",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.shift_rgb[batch]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "shift_rgb",+ "package": "kornia.enhance",+ "ref": "",+ "section": "",+ "variant": "batch",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.equalize3d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "equalize3d",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.equalize3d",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.equalize[batch]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "equalize",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.equalize",+ "section": "",+ "variant": "batch",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.histogram",+ "note": "bins and bandwidth live tensors",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "histogram",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.histogram",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.histogram2d",+ "note": "bins/bandwidth live",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "histogram2d",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.histogram2d",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.image_histogram2d",+ "note": "n_bins baked; returns (hist, pdf-or-zeros)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "image_histogram2d",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.image_histogram2d",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.image_histogram2d[pdf,gaussian]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "image_histogram2d",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.image_histogram2d",+ "section": "",+ "variant": "pdf,gaussian",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.image_histogram2d[centers]",+ "note": "centers tensor passed as kwarg -> constant",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "image_histogram2d",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.image_histogram2d",+ "section": "",+ "variant": "centers",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.normalize_min_max[range]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "normalize_min_max",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.normalize_min_max",+ "section": "",+ "variant": "range",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.linear_transform",+ "note": "transform matrix/mean live",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "linear_transform",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.linear_transform",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "mismatch",+ "compile_detail": "runs, but the result differs from eager: out0: max abs diff 2.050e+00 at 3161/3600 elements",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.zca_mean",+ "note": "returns (mean, T, None)",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.svd",+ "operator": "zca_mean",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.zca_mean",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "mismatch",+ "compile_detail": "runs, but the result differs from eager: out0: max abs diff 1.688e+00 at 3088/3600 elements",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.zca_mean[inverse]",+ "note": "returns (mean, T, T_inv)",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.svd",+ "operator": "zca_mean",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.zca_mean",+ "section": "",+ "variant": "inverse",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.zca_whiten",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.svd",+ "operator": "zca_whiten",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.zca_whiten",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.ZCAWhitening[transform]",+ "note": "fit() done eagerly; exports transform with fitted stats",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "ZCAWhitening",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.ZCAWhitening",+ "section": "",+ "variant": "transform",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.ZCAWhitening[inverse_transform]",+ "note": "compute_inv=True",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "ZCAWhitening",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.ZCAWhitening",+ "section": "",+ "variant": "inverse_transform",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.ZCAWhitening[include_fit]",+ "note": "fit inside graph (SVD)",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.svd",+ "operator": "ZCAWhitening",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.ZCAWhitening",+ "section": "",+ "variant": "include_fit",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.JPEGCodecDifferentiable",+ "note": "jpeg_quality live; H,W multiple of 16",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "JPEGCodecDifferentiable",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.JPEGCodecDifferentiable",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.JPEGCodecDifferentiable[batch]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "JPEGCodecDifferentiable",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.JPEGCodecDifferentiable",+ "section": "",+ "variant": "batch",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "enhance.JPEGCodecDifferentiable[custom_qt]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "JPEGCodecDifferentiable",+ "package": "kornia.enhance",+ "ref": "kornia.enhance.JPEGCodecDifferentiable",+ "section": "",+ "variant": "custom_qt",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.filter3d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "filter3d",+ "package": "kornia.filters",+ "ref": "kornia.filters.filter3d",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.filter3d[reflect,conv]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "filter3d",+ "package": "kornia.filters",+ "ref": "kornia.filters.filter3d",+ "section": "",+ "variant": "reflect,conv",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.filter3d[constant,normalized]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "filter3d",+ "package": "kornia.filters",+ "ref": "kornia.filters.filter3d",+ "section": "",+ "variant": "constant,normalized",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.filter3d[circular]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "filter3d",+ "package": "kornia.filters",+ "ref": "kornia.filters.filter3d",+ "section": "",+ "variant": "circular",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.filter3d[batch_kernels]",+ "note": "per-sample kernel B=2",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "filter3d",+ "package": "kornia.filters",+ "ref": "kornia.filters.filter3d",+ "section": "",+ "variant": "batch_kernels",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.convolve3d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "convolve3d",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.correlate3d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "correlate3d",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.convolve2d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "convolve2d",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.convolve2d[valid]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "convolve2d",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "valid",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.correlate2d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "correlate2d",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.fft_conv",+ "note": "corr, reflect, same",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for complex conj (torch.fft)",+ "operator": "fft_conv",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.fft_conv[conv,valid]",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for complex conj (torch.fft)",+ "operator": "fft_conv",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "conv,valid",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.fft_conv[normalized]",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for complex conj (torch.fft)",+ "operator": "fft_conv",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "normalized",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.filter2d_separable",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "filter2d_separable",+ "package": "kornia.filters",+ "ref": "kornia.filters.filter2d_separable",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.filter2d_separable[batch_kernels]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "filter2d_separable",+ "package": "kornia.filters",+ "ref": "kornia.filters.filter2d_separable",+ "section": "",+ "variant": "batch_kernels",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.filter2d[constant]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "filter2d",+ "package": "kornia.filters",+ "ref": "kornia.filters.filter2d",+ "section": "",+ "variant": "constant",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.filter2d[replicate]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "filter2d",+ "package": "kornia.filters",+ "ref": "kornia.filters.filter2d",+ "section": "",+ "variant": "replicate",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.filter2d[circular]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "filter2d",+ "package": "kornia.filters",+ "ref": "kornia.filters.filter2d",+ "section": "",+ "variant": "circular",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.filter2d[valid]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "filter2d",+ "package": "kornia.filters",+ "ref": "kornia.filters.filter2d",+ "section": "",+ "variant": "valid",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.filter2d[normalized]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "filter2d",+ "package": "kornia.filters",+ "ref": "kornia.filters.filter2d",+ "section": "",+ "variant": "normalized",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.filter2d[batch_kernels]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "filter2d",+ "package": "kornia.filters",+ "ref": "kornia.filters.filter2d",+ "section": "",+ "variant": "batch_kernels",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.filter2d[even_kernel]",+ "note": "even kernel size",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "filter2d",+ "package": "kornia.filters",+ "ref": "kornia.filters.filter2d",+ "section": "",+ "variant": "even_kernel",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.filter2d[conv]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "filter2d",+ "package": "kornia.filters",+ "ref": "kornia.filters.filter2d",+ "section": "",+ "variant": "conv",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.gaussian_blur2d[tensor_sigma]",+ "note": "sigma live tensor (B,2); kernel_size baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "gaussian_blur2d",+ "package": "kornia.filters",+ "ref": "kornia.filters.gaussian_blur2d",+ "section": "",+ "variant": "tensor_sigma",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.gaussian_blur2d[nonseparable]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "gaussian_blur2d",+ "package": "kornia.filters",+ "ref": "kornia.filters.gaussian_blur2d",+ "section": "",+ "variant": "nonseparable",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.gaussian_blur2d[tensor_sigma,batch]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "gaussian_blur2d",+ "package": "kornia.filters",+ "ref": "kornia.filters.gaussian_blur2d",+ "section": "",+ "variant": "tensor_sigma,batch",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.gaussian_blur2d[tensor_sigma,nonsep]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "gaussian_blur2d",+ "package": "kornia.filters",+ "ref": "kornia.filters.gaussian_blur2d",+ "section": "",+ "variant": "tensor_sigma,nonsep",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "deprecated alias of gaussian_blur2d",+ "export": "n/a",+ "export_detail": "deprecated alias of gaussian_blur2d",+ "graph_breaks": 0,+ "name": "filters.gaussian_blur2d_t",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "deprecated alias of gaussian_blur2d",+ "operator": "gaussian_blur2d_t",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "deprecated alias of get_gaussian_kernel1d",+ "export": "n/a",+ "export_detail": "deprecated alias of get_gaussian_kernel1d",+ "graph_breaks": 0,+ "name": "filters.get_gaussian_kernel1d_t",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "deprecated alias of get_gaussian_kernel1d",+ "operator": "get_gaussian_kernel1d_t",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "deprecated alias of get_gaussian_kernel2d",+ "export": "n/a",+ "export_detail": "deprecated alias of get_gaussian_kernel2d",+ "graph_breaks": 0,+ "name": "filters.get_gaussian_kernel2d_t",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "deprecated alias of get_gaussian_kernel2d",+ "operator": "get_gaussian_kernel2d_t",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "deprecated alias of get_gaussian_kernel3d",+ "export": "n/a",+ "export_detail": "deprecated alias of get_gaussian_kernel3d",+ "graph_breaks": 0,+ "name": "filters.get_gaussian_kernel3d_t",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "deprecated alias of get_gaussian_kernel3d",+ "operator": "get_gaussian_kernel3d_t",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.gaussian",+ "note": "sigma live (1,1); window_size baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "gaussian",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.gaussian[mean]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "gaussian",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "mean",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.get_gaussian_kernel1d",+ "note": "sigma live",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_gaussian_kernel1d",+ "package": "kornia.filters",+ "ref": "kornia.filters.get_gaussian_kernel1d",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.get_gaussian_kernel1d[even]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_gaussian_kernel1d",+ "package": "kornia.filters",+ "ref": "kornia.filters.get_gaussian_kernel1d",+ "section": "",+ "variant": "even",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.get_gaussian_kernel1d[float_sigma]",+ "note": "all-constant graph; dummy input",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_gaussian_kernel1d",+ "package": "kornia.filters",+ "ref": "kornia.filters.get_gaussian_kernel1d",+ "section": "",+ "variant": "float_sigma",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.get_gaussian_discrete_kernel1d",+ "note": "sigma live",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_gaussian_discrete_kernel1d",+ "package": "kornia.filters",+ "ref": "kornia.filters.get_gaussian_discrete_kernel1d",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.get_gaussian_erf_kernel1d",+ "note": "sigma live",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_gaussian_erf_kernel1d",+ "package": "kornia.filters",+ "ref": "kornia.filters.get_gaussian_erf_kernel1d",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.get_gaussian_kernel2d",+ "note": "sigma live",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_gaussian_kernel2d",+ "package": "kornia.filters",+ "ref": "kornia.filters.get_gaussian_kernel2d",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.get_gaussian_kernel2d[batch]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_gaussian_kernel2d",+ "package": "kornia.filters",+ "ref": "kornia.filters.get_gaussian_kernel2d",+ "section": "",+ "variant": "batch",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.get_gaussian_kernel3d",+ "note": "sigma live",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_gaussian_kernel3d",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.get_hanning_kernel1d",+ "note": "constant graph",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_hanning_kernel1d",+ "package": "kornia.filters",+ "ref": "kornia.filters.get_hanning_kernel1d",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.get_hanning_kernel2d",+ "note": "constant graph",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_hanning_kernel2d",+ "package": "kornia.filters",+ "ref": "kornia.filters.get_hanning_kernel2d",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.get_laplacian_kernel1d",+ "note": "constant graph",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_laplacian_kernel1d",+ "package": "kornia.filters",+ "ref": "kornia.filters.get_laplacian_kernel1d",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.get_laplacian_kernel2d",+ "note": "constant graph",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_laplacian_kernel2d",+ "package": "kornia.filters",+ "ref": "kornia.filters.get_laplacian_kernel2d",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.laplacian_1d",+ "note": "constant graph",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "laplacian_1d",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.get_box_kernel1d",+ "note": "constant graph",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_box_kernel1d",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.get_box_kernel2d",+ "note": "constant graph",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_box_kernel2d",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.get_binary_kernel2d",+ "note": "constant graph",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_binary_kernel2d",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.get_diff_kernel2d",+ "note": "constant graph",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_diff_kernel2d",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.get_sobel_kernel2d",+ "note": "constant graph",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_sobel_kernel2d",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.get_spatial_gradient_kernel2d[sobel,2]",+ "note": "constant graph",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_spatial_gradient_kernel2d",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "sobel,2",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.get_spatial_gradient_kernel2d[diff,1]",+ "note": "constant graph",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_spatial_gradient_kernel2d",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "diff,1",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.get_spatial_gradient_kernel3d[diff,1]",+ "note": "constant graph",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_spatial_gradient_kernel3d",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "diff,1",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.get_spatial_gradient_kernel3d[diff,2]",+ "note": "constant graph",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_spatial_gradient_kernel3d",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "diff,2",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.get_motion_kernel2d",+ "note": "angle/direction live; kernel_size baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_motion_kernel2d",+ "package": "kornia.filters",+ "ref": "kornia.filters.get_motion_kernel2d",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.get_motion_kernel2d[bilinear]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_motion_kernel2d",+ "package": "kornia.filters",+ "ref": "kornia.filters.get_motion_kernel2d",+ "section": "",+ "variant": "bilinear",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.get_motion_kernel2d[float]",+ "note": "constant graph",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_motion_kernel2d",+ "package": "kornia.filters",+ "ref": "kornia.filters.get_motion_kernel2d",+ "section": "",+ "variant": "float",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.get_motion_kernel3d",+ "note": "angle/direction live",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_motion_kernel3d",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.get_motion_kernel3d[float]",+ "note": "constant graph",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "get_motion_kernel3d",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "float",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.motion_blur3d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "motion_blur3d",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.motion_blur3d[live]",+ "note": "angle/direction live tensors",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "motion_blur3d",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "live",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.motion_blur3d[bilinear,reflect]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "motion_blur3d",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "bilinear,reflect",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.MotionBlur3D",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "MotionBlur3D",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.MotionBlur",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "MotionBlur",+ "package": "kornia.filters",+ "ref": "kornia.filters.MotionBlur",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.motion_blur[live]",+ "note": "angle/direction live tensors",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "motion_blur",+ "package": "kornia.filters",+ "ref": "kornia.filters.motion_blur",+ "section": "",+ "variant": "live",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.spatial_gradient3d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "spatial_gradient3d",+ "package": "kornia.filters",+ "ref": "kornia.filters.spatial_gradient3d",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.spatial_gradient3d[order2]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "spatial_gradient3d",+ "package": "kornia.filters",+ "ref": "kornia.filters.spatial_gradient3d",+ "section": "",+ "variant": "order2",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.SpatialGradient3d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "SpatialGradient3d",+ "package": "kornia.filters",+ "ref": "kornia.filters.SpatialGradient3d",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.spatial_gradient[order2]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "spatial_gradient",+ "package": "kornia.filters",+ "ref": "kornia.filters.spatial_gradient",+ "section": "",+ "variant": "order2",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.spatial_gradient[diff]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "spatial_gradient",+ "package": "kornia.filters",+ "ref": "kornia.filters.spatial_gradient",+ "section": "",+ "variant": "diff",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.spatial_gradient[diff,order2]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "spatial_gradient",+ "package": "kornia.filters",+ "ref": "kornia.filters.spatial_gradient",+ "section": "",+ "variant": "diff,order2",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.spatial_gradient[unnormalized]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "spatial_gradient",+ "package": "kornia.filters",+ "ref": "kornia.filters.spatial_gradient",+ "section": "",+ "variant": "unnormalized",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.SpatialGradient",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "SpatialGradient",+ "package": "kornia.filters",+ "ref": "kornia.filters.SpatialGradient",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.SpatialGradient[diff,2]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "SpatialGradient",+ "package": "kornia.filters",+ "ref": "kornia.filters.SpatialGradient",+ "section": "",+ "variant": "diff,2",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.Sobel",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Sobel",+ "package": "kornia.filters",+ "ref": "kornia.filters.Sobel",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.Sobel[unnormalized]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Sobel",+ "package": "kornia.filters",+ "ref": "kornia.filters.Sobel",+ "section": "",+ "variant": "unnormalized",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.Laplacian",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Laplacian",+ "package": "kornia.filters",+ "ref": "kornia.filters.Laplacian",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.Laplacian[unnormalized,replicate]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Laplacian",+ "package": "kornia.filters",+ "ref": "kornia.filters.Laplacian",+ "section": "",+ "variant": "unnormalized,replicate",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.BoxBlur",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "BoxBlur",+ "package": "kornia.filters",+ "ref": "kornia.filters.BoxBlur",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.BoxBlur[separable]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "BoxBlur",+ "package": "kornia.filters",+ "ref": "kornia.filters.BoxBlur",+ "section": "",+ "variant": "separable",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.GaussianBlur2d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "GaussianBlur2d",+ "package": "kornia.filters",+ "ref": "kornia.filters.GaussianBlur2d",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.GaussianBlur2d[tensor_sigma]",+ "note": "tensor sigma fixed at construction -> constant",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "GaussianBlur2d",+ "package": "kornia.filters",+ "ref": "kornia.filters.GaussianBlur2d",+ "section": "",+ "variant": "tensor_sigma",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.GaussianBlur2d[nonsep]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "GaussianBlur2d",+ "package": "kornia.filters",+ "ref": "kornia.filters.GaussianBlur2d",+ "section": "",+ "variant": "nonsep",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.MedianBlur",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "MedianBlur",+ "package": "kornia.filters",+ "ref": "kornia.filters.MedianBlur",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.MedianBlur[5x3]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "MedianBlur",+ "package": "kornia.filters",+ "ref": "kornia.filters.MedianBlur",+ "section": "",+ "variant": "5x3",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.median_blur[batch]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "median_blur",+ "package": "kornia.filters",+ "ref": "kornia.filters.median_blur",+ "section": "",+ "variant": "batch",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.UnsharpMask",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "UnsharpMask",+ "package": "kornia.filters",+ "ref": "kornia.filters.UnsharpMask",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.BilateralBlur",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "BilateralBlur",+ "package": "kornia.filters",+ "ref": "kornia.filters.BilateralBlur",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.BilateralBlur[l2]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "BilateralBlur",+ "package": "kornia.filters",+ "ref": "kornia.filters.BilateralBlur",+ "section": "",+ "variant": "l2",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.bilateral_blur[live_sigma]",+ "note": "sigma_color/sigma_space live",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "bilateral_blur",+ "package": "kornia.filters",+ "ref": "kornia.filters.bilateral_blur",+ "section": "",+ "variant": "live_sigma",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.JointBilateralBlur",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "JointBilateralBlur",+ "package": "kornia.filters",+ "ref": "kornia.filters.JointBilateralBlur",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.GuidedBlur",+ "note": "known problematic",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.solve",+ "operator": "GuidedBlur",+ "package": "kornia.filters",+ "ref": "kornia.filters.GuidedBlur",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.GuidedBlur[subsample2]",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.solve",+ "operator": "GuidedBlur",+ "package": "kornia.filters",+ "ref": "kornia.filters.GuidedBlur",+ "section": "",+ "variant": "subsample2",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.guided_blur[gray_guidance]",+ "note": "single-channel guidance",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "guided_blur",+ "package": "kornia.filters",+ "ref": "kornia.filters.guided_blur",+ "section": "",+ "variant": "gray_guidance",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.guided_blur[eps_tensor]",+ "note": "eps live",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.solve",+ "operator": "guided_blur",+ "package": "kornia.filters",+ "ref": "kornia.filters.guided_blur",+ "section": "",+ "variant": "eps_tensor",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "1 graph break: generic_jump TensorVariable()",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 1,+ "name": "filters.Canny",+ "note": "known fail (data-dependent hysteresis loop)",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "Canny",+ "package": "kornia.filters",+ "ref": "kornia.filters.Canny",+ "section": "",+ "variant": "",+ "where": "kornia/filters/canny.py:146"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.Canny[no_hysteresis]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Canny",+ "package": "kornia.filters",+ "ref": "kornia.filters.Canny",+ "section": "",+ "variant": "no_hysteresis",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.canny[no_hysteresis]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "canny",+ "package": "kornia.filters",+ "ref": "kornia.filters.canny",+ "section": "",+ "variant": "no_hysteresis",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.canny[gray,no_hysteresis]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "canny",+ "package": "kornia.filters",+ "ref": "kornia.filters.canny",+ "section": "",+ "variant": "gray,no_hysteresis",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.BlurPool2D",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "BlurPool2D",+ "package": "kornia.filters",+ "ref": "kornia.filters.BlurPool2D",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.BlurPool2D[stride1]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "BlurPool2D",+ "package": "kornia.filters",+ "ref": "kornia.filters.BlurPool2D",+ "section": "",+ "variant": "stride1",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.MaxBlurPool2D",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "MaxBlurPool2D",+ "package": "kornia.filters",+ "ref": "kornia.filters.MaxBlurPool2D",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.MaxBlurPool2D[ceil]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "MaxBlurPool2D",+ "package": "kornia.filters",+ "ref": "kornia.filters.MaxBlurPool2D",+ "section": "",+ "variant": "ceil",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.EdgeAwareBlurPool2D",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "EdgeAwareBlurPool2D",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.edge_aware_blur_pool2d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "edge_aware_blur_pool2d",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.edge_aware_blur_pool2d[k5]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "edge_aware_blur_pool2d",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "k5",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.InRange",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "InRange",+ "package": "kornia.filters",+ "ref": "kornia.filters.InRange",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.InRange[return_mask]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "InRange",+ "package": "kornia.filters",+ "ref": "kornia.filters.InRange",+ "section": "",+ "variant": "return_mask",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.in_range[live_bounds]",+ "note": "lower/upper live tensors",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "in_range",+ "package": "kornia.filters",+ "ref": "kornia.filters.in_range",+ "section": "",+ "variant": "live_bounds",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.in_range[return_mask]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "in_range",+ "package": "kornia.filters",+ "ref": "kornia.filters.in_range",+ "section": "",+ "variant": "return_mask",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "4 graph breaks: Unsupported Tensor.item() call with capture_scalar_outputs=False\n Explanation: Dynamo does not support tracing `Tensor.item()` with config.capture_scalar_outpu",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 4,+ "name": "filters.otsu_threshold",+ "note": "returns (thresholded, threshold)",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.histc",+ "operator": "otsu_threshold",+ "package": "kornia.filters",+ "ref": "kornia.filters.otsu_threshold",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "mismatch",+ "compile_detail": "runs, but the result differs from eager: out0: max abs diff 1.947e+02 at 97/3840 elements; out1: max abs diff 1.898e+01 at 1/3 elements",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 4,+ "name": "filters.otsu_threshold[differentiable]",+ "note": "",+ "onnx": "mismatch",+ "onnx_detail": "runs, but the result differs from eager: out0: max abs diff 1.947e+02 at 97/3840 elements; out1: max abs diff 1.898e+01 at 1/3 elements",+ "operator": "otsu_threshold",+ "package": "kornia.filters",+ "ref": "kornia.filters.otsu_threshold",+ "section": "",+ "variant": "differentiable",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "5 graph breaks: Unsupported Tensor.item() call with capture_scalar_outputs=False\n Explanation: Dynamo does not support tracing `Tensor.item()` with config.capture_scalar_outpu",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 5,+ "name": "filters.otsu_threshold[return_mask]",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.histc",+ "operator": "otsu_threshold",+ "package": "kornia.filters",+ "ref": "kornia.filters.otsu_threshold",+ "section": "",+ "variant": "return_mask",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "3 graph breaks: Unsupported Tensor.item() call with capture_scalar_outputs=False\n Explanation: Dynamo does not support tracing `Tensor.item()` with config.capture_scalar_outpu",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 3,+ "name": "filters.OtsuThreshold",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.histc",+ "operator": "OtsuThreshold",+ "package": "kornia.filters",+ "ref": "kornia.filters.OtsuThreshold",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "weights > 500 MB (Stable Diffusion 1.5 via diffusers)",+ "export": "n/a",+ "export_detail": "weights > 500 MB (Stable Diffusion 1.5 via diffusers)",+ "graph_breaks": 0,+ "name": "filters.StableDiffusionDissolving",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "weights > 500 MB (Stable Diffusion 1.5 via diffusers)",+ "operator": "StableDiffusionDissolving",+ "package": "kornia.filters",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.laplacian[batch,rect]",+ "note": "rectangular kernel (even sizes are rejected by kornia)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "laplacian",+ "package": "kornia.filters",+ "ref": "kornia.filters.laplacian",+ "section": "",+ "variant": "batch,rect",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.sobel[batch]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "sobel",+ "package": "kornia.filters",+ "ref": "kornia.filters.sobel",+ "section": "",+ "variant": "batch",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.box_blur[separable]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "box_blur",+ "package": "kornia.filters",+ "ref": "kornia.filters.box_blur",+ "section": "",+ "variant": "separable",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "filters.unsharp_mask[tensor_sigma]",+ "note": "sigma live",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "unsharp_mask",+ "package": "kornia.filters",+ "ref": "kornia.filters.unsharp_mask",+ "section": "",+ "variant": "tensor_sigma",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.ssim_loss",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "ssim_loss",+ "package": "kornia.losses",+ "ref": "kornia.losses.ssim_loss",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.ssim_loss[valid,none]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "ssim_loss",+ "package": "kornia.losses",+ "ref": "kornia.losses.ssim_loss",+ "section": "",+ "variant": "valid,none",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.SSIMLoss",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "SSIMLoss",+ "package": "kornia.losses",+ "ref": "kornia.losses.SSIMLoss",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.ssim3d_loss",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "ssim3d_loss",+ "package": "kornia.losses",+ "ref": "kornia.losses.ssim3d_loss",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.SSIM3DLoss",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "SSIM3DLoss",+ "package": "kornia.losses",+ "ref": "kornia.losses.SSIM3DLoss",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.MS_SSIMLoss",+ "note": "default sigmas up to 8",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "MS_SSIMLoss",+ "package": "kornia.losses",+ "ref": "kornia.losses.MS_SSIMLoss",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.MS_SSIMLoss[small_sigmas]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "MS_SSIMLoss",+ "package": "kornia.losses",+ "ref": "kornia.losses.MS_SSIMLoss",+ "section": "",+ "variant": "small_sigmas",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.psnr_loss",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "psnr_loss",+ "package": "kornia.losses",+ "ref": "kornia.losses.psnr_loss",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.PSNRLoss",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "PSNRLoss",+ "package": "kornia.losses",+ "ref": "kornia.losses.PSNRLoss",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.total_variation",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "total_variation",+ "package": "kornia.losses",+ "ref": "kornia.losses.total_variation",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.total_variation[mean]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "total_variation",+ "package": "kornia.losses",+ "ref": "kornia.losses.total_variation",+ "section": "",+ "variant": "mean",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.TotalVariation",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "TotalVariation",+ "package": "kornia.losses",+ "ref": "kornia.losses.TotalVariation",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.inverse_depth_smoothness_loss",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "inverse_depth_smoothness_loss",+ "package": "kornia.losses",+ "ref": "kornia.losses.inverse_depth_smoothness_loss",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.InverseDepthSmoothnessLoss",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "InverseDepthSmoothnessLoss",+ "package": "kornia.losses",+ "ref": "kornia.losses.InverseDepthSmoothnessLoss",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.dice_loss",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "dice_loss",+ "package": "kornia.losses",+ "ref": "kornia.losses.dice_loss",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.dice_loss[macro,weight]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "dice_loss",+ "package": "kornia.losses",+ "ref": "kornia.losses.dice_loss",+ "section": "",+ "variant": "macro,weight",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.dice_loss[ignore_index]",+ "note": "labels contain -100",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "dice_loss",+ "package": "kornia.losses",+ "ref": "kornia.losses.dice_loss",+ "section": "",+ "variant": "ignore_index",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.DiceLoss",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "DiceLoss",+ "package": "kornia.losses",+ "ref": "kornia.losses.DiceLoss",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.tversky_loss",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "tversky_loss",+ "package": "kornia.losses",+ "ref": "kornia.losses.tversky_loss",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.TverskyLoss",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "TverskyLoss",+ "package": "kornia.losses",+ "ref": "kornia.losses.TverskyLoss",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.focal_loss",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "focal_loss",+ "package": "kornia.losses",+ "ref": "kornia.losses.focal_loss",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.focal_loss[mean,weight]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "focal_loss",+ "package": "kornia.losses",+ "ref": "kornia.losses.focal_loss",+ "section": "",+ "variant": "mean,weight",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.focal_loss[ignore_index]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "focal_loss",+ "package": "kornia.losses",+ "ref": "kornia.losses.focal_loss",+ "section": "",+ "variant": "ignore_index",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.FocalLoss",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "FocalLoss",+ "package": "kornia.losses",+ "ref": "kornia.losses.FocalLoss",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.binary_focal_loss_with_logits",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "binary_focal_loss_with_logits",+ "package": "kornia.losses",+ "ref": "kornia.losses.binary_focal_loss_with_logits",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.binary_focal_loss_with_logits[pos_weight,mean]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "binary_focal_loss_with_logits",+ "package": "kornia.losses",+ "ref": "kornia.losses.binary_focal_loss_with_logits",+ "section": "",+ "variant": "pos_weight,mean",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.BinaryFocalLossWithLogits",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "BinaryFocalLossWithLogits",+ "package": "kornia.losses",+ "ref": "kornia.losses.BinaryFocalLossWithLogits",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.lovasz_hinge_loss",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "lovasz_hinge_loss",+ "package": "kornia.losses",+ "ref": "kornia.losses.lovasz_hinge_loss",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.LovaszHingeLoss",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "LovaszHingeLoss",+ "package": "kornia.losses",+ "ref": "kornia.losses.LovaszHingeLoss",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.lovasz_softmax_loss",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "lovasz_softmax_loss",+ "package": "kornia.losses",+ "ref": "kornia.losses.lovasz_softmax_loss",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.lovasz_softmax_loss[weight]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "lovasz_softmax_loss",+ "package": "kornia.losses",+ "ref": "kornia.losses.lovasz_softmax_loss",+ "section": "",+ "variant": "weight",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.LovaszSoftmaxLoss",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "LovaszSoftmaxLoss",+ "package": "kornia.losses",+ "ref": "kornia.losses.LovaszSoftmaxLoss",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.hausdorff_er_loss",+ "note": "k=10 erosions",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "hausdorff_er_loss",+ "package": "kornia.losses",+ "ref": "kornia.losses.HausdorffERLoss",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.HausdorffERLoss[k3,sum]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "HausdorffERLoss",+ "package": "kornia.losses",+ "ref": "kornia.losses.HausdorffERLoss",+ "section": "",+ "variant": "k3,sum",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.HausdorffERLoss3D",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "HausdorffERLoss3D",+ "package": "kornia.losses",+ "ref": "kornia.losses.HausdorffERLoss3D",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.charbonnier_loss",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "charbonnier_loss",+ "package": "kornia.losses",+ "ref": "kornia.losses.charbonnier_loss",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.charbonnier_loss[mean]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "charbonnier_loss",+ "package": "kornia.losses",+ "ref": "kornia.losses.charbonnier_loss",+ "section": "",+ "variant": "mean",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.CharbonnierLoss",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "CharbonnierLoss",+ "package": "kornia.losses",+ "ref": "kornia.losses.CharbonnierLoss",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.cauchy_loss",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "cauchy_loss",+ "package": "kornia.losses",+ "ref": "kornia.losses.cauchy_loss",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.cauchy_loss[mean]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "cauchy_loss",+ "package": "kornia.losses",+ "ref": "kornia.losses.cauchy_loss",+ "section": "",+ "variant": "mean",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.CauchyLoss",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "CauchyLoss",+ "package": "kornia.losses",+ "ref": "kornia.losses.CauchyLoss",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.geman_mcclure_loss",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "geman_mcclure_loss",+ "package": "kornia.losses",+ "ref": "kornia.losses.geman_mcclure_loss",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.geman_mcclure_loss[mean]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "geman_mcclure_loss",+ "package": "kornia.losses",+ "ref": "kornia.losses.geman_mcclure_loss",+ "section": "",+ "variant": "mean",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.GemanMcclureLoss",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "GemanMcclureLoss",+ "package": "kornia.losses",+ "ref": "kornia.losses.GemanMcclureLoss",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.welsch_loss",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "welsch_loss",+ "package": "kornia.losses",+ "ref": "kornia.losses.welsch_loss",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.welsch_loss[mean]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "welsch_loss",+ "package": "kornia.losses",+ "ref": "kornia.losses.welsch_loss",+ "section": "",+ "variant": "mean",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.WelschLoss",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "WelschLoss",+ "package": "kornia.losses",+ "ref": "kornia.losses.WelschLoss",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.js_div_loss_2d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "js_div_loss_2d",+ "package": "kornia.losses",+ "ref": "kornia.losses.js_div_loss_2d",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.js_div_loss_2d[none]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "js_div_loss_2d",+ "package": "kornia.losses",+ "ref": "kornia.losses.js_div_loss_2d",+ "section": "",+ "variant": "none",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.kl_div_loss_2d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "kl_div_loss_2d",+ "package": "kornia.losses",+ "ref": "kornia.losses.kl_div_loss_2d",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.kl_div_loss_2d[sum]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "kl_div_loss_2d",+ "package": "kornia.losses",+ "ref": "kornia.losses.kl_div_loss_2d",+ "section": "",+ "variant": "sum",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "3 graph breaks",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 3,+ "name": "losses.mutual_information_loss",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "mutual_information_loss",+ "package": "kornia.losses",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "3 graph breaks",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 3,+ "name": "losses.mutual_information_loss[rect]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "mutual_information_loss",+ "package": "kornia.losses",+ "ref": "",+ "section": "",+ "variant": "rect",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "3 graph breaks",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 3,+ "name": "losses.mutual_information_loss[tgauss,bins16]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "mutual_information_loss",+ "package": "kornia.losses",+ "ref": "",+ "section": "",+ "variant": "tgauss,bins16",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "10 graph breaks: a Python branch (if / while) tests tensor values at run time",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 10,+ "name": "losses.mutual_information_loss[mask]",+ "note": "bool masks live (common mask, shape N)",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "mutual_information_loss",+ "package": "kornia.losses",+ "ref": "",+ "section": "",+ "variant": "mask",+ "where": "kornia/losses/mutual_information.py:237"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "5 graph breaks",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 5,+ "name": "losses.mutual_information_loss_2d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "mutual_information_loss_2d",+ "package": "kornia.losses",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "5 graph breaks",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 5,+ "name": "losses.mutual_information_loss_3d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "mutual_information_loss_3d",+ "package": "kornia.losses",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "3 graph breaks",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 3,+ "name": "losses.normalized_mutual_information_loss",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "normalized_mutual_information_loss",+ "package": "kornia.losses",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "5 graph breaks",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 5,+ "name": "losses.normalized_mutual_information_loss_2d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "normalized_mutual_information_loss_2d",+ "package": "kornia.losses",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "5 graph breaks",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 5,+ "name": "losses.normalized_mutual_information_loss_3d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "normalized_mutual_information_loss_3d",+ "package": "kornia.losses",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.MILossFromRef",+ "note": "reference signal fixed at construction",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "MILossFromRef",+ "package": "kornia.losses",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "7 graph breaks: a Python branch (if / while) tests tensor values at run time",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 7,+ "name": "losses.MILossFromRef[mask]",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "MILossFromRef",+ "package": "kornia.losses",+ "ref": "",+ "section": "",+ "variant": "mask",+ "where": "kornia/losses/mutual_information.py:237"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.MILossFromRef2D",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "MILossFromRef2D",+ "package": "kornia.losses",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.MILossFromRef3D",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "MILossFromRef3D",+ "package": "kornia.losses",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.NMILossFromRef",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "NMILossFromRef",+ "package": "kornia.losses",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.NMILossFromRef2D",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "NMILossFromRef2D",+ "package": "kornia.losses",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.NMILossFromRef3D",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "NMILossFromRef3D",+ "package": "kornia.losses",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "Enum of kernel functions",+ "export": "n/a",+ "export_detail": "Enum of kernel functions",+ "graph_breaks": 0,+ "name": "losses.MIKernel",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "Enum of kernel functions",+ "operator": "MIKernel",+ "package": "kornia.losses",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "losses.one_hot",+ "note": "num_classes baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "one_hot",+ "package": "kornia.losses",+ "ref": "kornia.losses.one_hot",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "metrics.accuracy",+ "note": "returns list of 0-d tensors",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "accuracy",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.accuracy",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "metrics.accuracy[top1,top3]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "accuracy",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.accuracy",+ "section": "",+ "variant": "top1,top3",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 0,+ "name": "metrics.confusion_matrix",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "confusion_matrix",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.confusion_matrix",+ "section": "",+ "variant": "",+ "where": "kornia/metrics/confusion_matrix.py:79"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 0,+ "name": "metrics.confusion_matrix[normalized]",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "confusion_matrix",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.confusion_matrix",+ "section": "",+ "variant": "normalized",+ "where": "kornia/metrics/confusion_matrix.py:79"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "1 graph break",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 1,+ "name": "metrics.mean_iou",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "mean_iou",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.mean_iou",+ "section": "",+ "variant": "",+ "where": "kornia/metrics/confusion_matrix.py:79"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "metrics.mean_iou_bbox",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "mean_iou_bbox",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.mean_iou_bbox",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "metrics.mean_iou_bbox[xywh]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "mean_iou_bbox",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.mean_iou_bbox",+ "section": "",+ "variant": "xywh",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "metrics.mean_iou_bbox[cxcywh]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "mean_iou_bbox",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.mean_iou_bbox",+ "section": "",+ "variant": "cxcywh",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "1 graph break",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 1,+ "name": "metrics.mean_average_precision",+ "note": "Python-heavy (per-class loops, dict return); lists wrapped",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "mean_average_precision",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.mean_average_precision",+ "section": "",+ "variant": "",+ "where": "kornia/metrics/mean_average_precision.py:106"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "metrics.psnr",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "psnr",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.psnr",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "metrics.ssim",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "ssim",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.ssim",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "metrics.ssim[valid]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "ssim",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.ssim",+ "section": "",+ "variant": "valid",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "metrics.SSIM",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "SSIM",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.SSIM",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "metrics.ssim3d",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "ssim3d",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.ssim3d",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "metrics.SSIM3D",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "SSIM3D",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.SSIM3D",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "metrics.aepe",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "aepe",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.aepe",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "metrics.aepe[none]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "aepe",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.aepe",+ "section": "",+ "variant": "none",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "metrics.average_endpoint_error",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "average_endpoint_error",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.aepe",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "metrics.AEPE",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "AEPE",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.AEPE",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "metrics.mean_absolute_disparity_error",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "mean_absolute_disparity_error",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.mean_absolute_disparity_error",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "3 graph breaks: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 3,+ "name": "metrics.mean_absolute_disparity_error[mask]",+ "note": "bool mask live",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "mean_absolute_disparity_error",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.mean_absolute_disparity_error",+ "section": "",+ "variant": "mask",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "metrics.root_mean_squared_disparity_error",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "root_mean_squared_disparity_error",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.root_mean_squared_disparity_error",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "metrics.root_mean_squared_disparity_error[mask,none]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "root_mean_squared_disparity_error",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.root_mean_squared_disparity_error",+ "section": "",+ "variant": "mask,none",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "metrics.mean_bad_pixel_error",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "mean_bad_pixel_error",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.mean_bad_pixel_error",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "3 graph breaks: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 3,+ "name": "metrics.mean_bad_pixel_error[mask]",+ "note": "bool mask live",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "mean_bad_pixel_error",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.mean_bad_pixel_error",+ "section": "",+ "variant": "mask",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "metrics.angle_error_mat",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "angle_error_mat",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.angle_error_mat",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "metrics.angle_error_mat[batch]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "angle_error_mat",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.angle_error_mat",+ "section": "",+ "variant": "batch",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "metrics.angle_error_vec",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "angle_error_vec",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.angle_error_vec",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "metrics.angle_error_vec[batch]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "angle_error_vec",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.angle_error_vec",+ "section": "",+ "variant": "batch",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "metrics.translation_ate",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "translation_ate",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.translation_ate",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "metrics.translation_ate[batch]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "translation_ate",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.translation_ate",+ "section": "",+ "variant": "batch",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "metrics.pose_errors",+ "note": "returns dict of tensors",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "pose_errors",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.pose_errors",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "metrics.pose_errors[batch,no_fold]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "pose_errors",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.pose_errors",+ "section": "",+ "variant": "batch,no_fold",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "returns no tensor (Python object output), nothing to capture",+ "export": "n/a",+ "export_detail": "returns no tensor (Python object output), nothing to capture",+ "graph_breaks": 0,+ "name": "metrics.auc_from_errors",+ "note": "returns dict[float,float] of Python floats",+ "onnx": "n/a",+ "onnx_detail": "returns no tensor (Python object output), nothing to capture",+ "operator": "auc_from_errors",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.auc_from_errors",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "running-statistics helper, not a tensor op",+ "export": "n/a",+ "export_detail": "running-statistics helper, not a tensor op",+ "graph_breaks": 0,+ "name": "metrics.AverageMeter",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "running-statistics helper, not a tensor op",+ "operator": "AverageMeter",+ "package": "kornia.metrics",+ "ref": "kornia.metrics.AverageMeter",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "utils.create_meshgrid",+ "note": "H,W baked; graph is fully constant (kornia.geometry.create_meshgrid)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "create_meshgrid",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "utils.create_meshgrid[unnormalized]",+ "note": "constant graph",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "create_meshgrid",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "unnormalized",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "utils.create_meshgrid3d",+ "note": "constant graph",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "create_meshgrid3d",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "utils.create_meshgrid3d[unnormalized]",+ "note": "constant graph",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "create_meshgrid3d",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "unnormalized",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "utils.eye_like",+ "note": "n baked; batch from input (kornia.core.ops)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "eye_like",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "utils.eye_like[shared]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "eye_like",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "shared",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "utils.vec_like",+ "note": "kornia.core.ops",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "vec_like",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "deprecated alias of kornia.losses.one_hot (kornia.utils is a deprecation shim, not an attribute of kornia)",+ "export": "n/a",+ "export_detail": "deprecated alias of kornia.losses.one_hot (kornia.utils is a deprecation shim, not an attribute of kornia)",+ "graph_breaks": 0,+ "name": "utils.one_hot",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "deprecated alias of kornia.losses.one_hot (kornia.utils is a deprecation shim, not an attribute of kornia)",+ "operator": "one_hot",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "16 graph breaks: a tensor value is read back into Python (.item() / bool()) during the forward",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 16,+ "name": "utils.draw_line",+ "note": "kornia.image.draw_line; single image CxHxW",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "draw_line",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "",+ "where": "kornia/image/draw.py:102"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "1 graph break: Unsupported Tensor.item() call with capture_scalar_outputs=False\n Explanation: Dynamo does not support tracing `Tensor.item()` with config.capture_scalar_outpu",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 1,+ "name": "utils.draw_rectangle",+ "note": "kornia.image.draw_rectangle, default color",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "draw_rectangle",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "",+ "where": "kornia/image/draw.py:269"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "1 graph break: Unsupported Tensor.item() call with capture_scalar_outputs=False\n Explanation: Dynamo does not support tracing `Tensor.item()` with config.capture_scalar_outpu",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 1,+ "name": "utils.draw_rectangle[fill,color]",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "draw_rectangle",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "fill,color",+ "where": "kornia/image/draw.py:265"+ },+ {+ "compile": "fail",+ "compile_detail": "a tensor value is read back into Python (.item() / bool()) during the forward",+ "export": "fail",+ "export_detail": "a tensor value is read back into Python (.item() / bool()) during the forward",+ "graph_breaks": 0,+ "name": "utils.draw_point2d",+ "note": "kornia.image.draw_point2d; points int64 (x,y)",+ "onnx": "fail",+ "onnx_detail": "a tensor value is read back into Python (.item() / bool()) during the forward",+ "operator": "draw_point2d",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "",+ "where": "kornia/image/draw.py:53"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "4 graph breaks: Data dependent operator\n Explanation: Operator `aten.allclose.default` has a non-Tensor output whose value is dependent on the data of Tensor inputs.\n Hint: C",+ "export": "fail",+ "export_detail": "allclose produces a Python value from tensor values (no graph output)",+ "graph_breaks": 4,+ "name": "utils.draw_convex_polygon",+ "note": "kornia.image.draw_convex_polygon; polygons as BxNx2 tensor",+ "onnx": "fail",+ "onnx_detail": "allclose produces a Python value from tensor values (no graph output)",+ "operator": "draw_convex_polygon",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "",+ "where": "kornia/image/draw.py:302"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "utils.safe_inverse_with_mask",+ "note": "returns (inv, mask)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "safe_inverse_with_mask",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "utils.safe_solve_with_mask",+ "note": "returns (X, LU, mask)",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.linalg.lu_factor",+ "operator": "safe_solve_with_mask",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "2 graph breaks: torch.* op returned non-Tensor\n Explanation: torch.* ops that return a non-Tensor cannot be traced into the Dynamo FX graph output\n\n\n Developer debug context",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 2,+ "name": "utils.batched_forward",+ "note": "micro-batch loop over Identity; batch_size baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "batched_forward",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "2 graph breaks",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 2,+ "name": "utils.torch_meshgrid",+ "note": "thin wrapper over torch.meshgrid (kornia.utils shim)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "torch_meshgrid",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "numpy input",+ "export": "n/a",+ "export_detail": "numpy input",+ "graph_breaks": 0,+ "name": "utils.ImageToTensor",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "numpy input",+ "operator": "ImageToTensor",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "numpy input",+ "export": "n/a",+ "export_detail": "numpy input",+ "graph_breaks": 0,+ "name": "utils.image_to_tensor",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "numpy input",+ "operator": "image_to_tensor",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "list of numpy inputs",+ "export": "n/a",+ "export_detail": "list of numpy inputs",+ "graph_breaks": 0,+ "name": "utils.image_list_to_tensor",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "list of numpy inputs",+ "operator": "image_list_to_tensor",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "numpy output",+ "export": "n/a",+ "export_detail": "numpy output",+ "graph_breaks": 0,+ "name": "utils.tensor_to_image",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "numpy output",+ "operator": "tensor_to_image",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "returns str",+ "export": "n/a",+ "export_detail": "returns str",+ "graph_breaks": 0,+ "name": "utils.image_to_string",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "returns str",+ "operator": "image_to_string",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "prints; no tensor output",+ "export": "n/a",+ "export_detail": "prints; no tensor output",+ "graph_breaks": 0,+ "name": "utils.print_image",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "prints; no tensor output",+ "operator": "print_image",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "returns torch.device",+ "export": "n/a",+ "export_detail": "returns torch.device",+ "graph_breaks": 0,+ "name": "utils.get_cuda_device_if_available",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "returns torch.device",+ "operator": "get_cuda_device_if_available",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "returns torch.device",+ "export": "n/a",+ "export_detail": "returns torch.device",+ "graph_breaks": 0,+ "name": "utils.get_mps_device_if_available",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "returns torch.device",+ "operator": "get_mps_device_if_available",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "returns torch.device",+ "export": "n/a",+ "export_detail": "returns torch.device",+ "graph_breaks": 0,+ "name": "utils.get_cuda_or_mps_device_if_available",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "returns torch.device",+ "operator": "get_cuda_or_mps_device_if_available",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "returns Python bool",+ "export": "n/a",+ "export_detail": "returns Python bool",+ "graph_breaks": 0,+ "name": "utils.is_autocast_enabled",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "returns Python bool",+ "operator": "is_autocast_enabled",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "returns Python bool",+ "export": "n/a",+ "export_detail": "returns Python bool",+ "graph_breaks": 0,+ "name": "utils.is_mps_tensor_safe",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "returns Python bool",+ "operator": "is_mps_tensor_safe",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "returns Python bool",+ "export": "n/a",+ "export_detail": "returns Python bool",+ "graph_breaks": 0,+ "name": "utils.xla_is_available",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "returns Python bool",+ "operator": "xla_is_available",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "Python container helper",+ "export": "n/a",+ "export_detail": "Python container helper",+ "graph_breaks": 0,+ "name": "utils.dataclass_to_dict",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "Python container helper",+ "operator": "dataclass_to_dict",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "Python container helper",+ "export": "n/a",+ "export_detail": "Python container helper",+ "graph_breaks": 0,+ "name": "utils.dict_to_dataclass",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "Python container helper",+ "operator": "dict_to_dataclass",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "decorator",+ "export": "n/a",+ "export_detail": "decorator",+ "graph_breaks": 0,+ "name": "utils.deprecated",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "decorator",+ "operator": "deprecated",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "torch.load helper",+ "export": "n/a",+ "export_detail": "torch.load helper",+ "graph_breaks": 0,+ "name": "utils.map_location_to_cpu",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "torch.load helper",+ "operator": "map_location_to_cpu",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "downloads sample images; not a tensor op",+ "export": "n/a",+ "export_detail": "downloads sample images; not a tensor op",+ "graph_breaks": 0,+ "name": "utils.get_sample_images",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "downloads sample images; not a tensor op",+ "operator": "get_sample_images",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "file I/O",+ "export": "n/a",+ "export_detail": "file I/O",+ "graph_breaks": 0,+ "name": "utils.load_pointcloud_ply",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "file I/O",+ "operator": "load_pointcloud_ply",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "file I/O",+ "export": "n/a",+ "export_detail": "file I/O",+ "graph_breaks": 0,+ "name": "utils.save_pointcloud_ply",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "file I/O",+ "operator": "save_pointcloud_ply",+ "package": "kornia.utils",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "kornia.morphology exposes only the 7 functions already covered in the first pass",+ "export": "n/a",+ "export_detail": "kornia.morphology exposes only the 7 functions already covered in the first pass",+ "graph_breaks": 0,+ "name": "morphology.[no module classes]",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "kornia.morphology exposes only the 7 functions already covered in the first pass",+ "operator": "",+ "package": "kornia.morphology",+ "ref": "",+ "section": "",+ "variant": "no module classes",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "morphology.dilation[3d_kernel_variants]",+ "note": "engine=convolution variant (first pass used unfold)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "dilation",+ "package": "kornia.morphology",+ "ref": "kornia.morphology.dilation",+ "section": "",+ "variant": "3d_kernel_variants",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "morphology.erosion[convolution]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "erosion",+ "package": "kornia.morphology",+ "ref": "kornia.morphology.erosion",+ "section": "",+ "variant": "convolution",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "morphology.dilation[structuring_element]",+ "note": "structuring_element live tensor (non-flat)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "dilation",+ "package": "kornia.morphology",+ "ref": "kornia.morphology.dilation",+ "section": "",+ "variant": "structuring_element",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "morphology.dilation[border_constant]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "dilation",+ "package": "kornia.morphology",+ "ref": "kornia.morphology.dilation",+ "section": "",+ "variant": "border_constant",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "morphology.gradient[batch]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "gradient",+ "package": "kornia.morphology",+ "ref": "kornia.morphology.gradient",+ "section": "",+ "variant": "batch",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.rt_detr.RTDETR[r18vd,pretrained]",+ "note": "weights rtdetr_r18vd (HF kornia/rt_detr); outputs (logits (1,300,80), boxes (1,300,4)); 256x320 input | to_onnx(save=False) OK (78.48 MB, ['ai.onnx:18'], in [['input', ['s34', 3, 640, 640]]], out [['pred_logits', [1, 300, 80]], ['pred_boxes', ['s34', 300, 4]]])",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RTDETR",+ "package": "kornia.models",+ "ref": "kornia.models.rt_detr.RTDETR",+ "section": "rt_detr",+ "variant": "r18vd,pretrained",+ "where": ""+ },+ {+ "compile": "mismatch",+ "compile_detail": "runs, but the result differs from eager: out0: max abs diff 1.637e-02 at 975/24000 elements; out1: max abs diff 9.222e-01 at 34/1200 elements",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.rt_detr.RTDETR[r18vd,random,160x192]",+ "note": "random init via RTDETR.from_name; 160x192 input. NOTE: 64x96 fails eagerly ('selected index k out of range'): the decoder topk selects 300 queries so the input must yield >=300 encoder tokens (>= ~128x160)",+ "onnx": "mismatch",+ "onnx_detail": "runs, but the result differs from eager: out0: max abs diff 1.750e-02 at 1397/24000 elements; out1: max abs diff 8.254e-01 at 54/1200 elements",+ "operator": "RTDETR",+ "package": "kornia.models",+ "ref": "kornia.models.rt_detr.RTDETR",+ "section": "rt_detr",+ "variant": "r18vd,random,160x192",+ "where": ""+ },+ {+ "compile": "mismatch",+ "compile_detail": "runs, but the result differs from eager: out0: max abs diff 3.452e-03 at 12/900 elements; out1: max abs diff 4.948e-01 at 12/1200 elements",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.rt_detr.RTDETR.from_config[r18vd,num_classes=3]",+ "note": "RTDETRConfig(RTDETRModelType.resnet18d, num_classes=3); random init (str model_type 'rtdetr_r18vd' is rejected: AttributeError)",+ "onnx": "mismatch",+ "onnx_detail": "runs, but the result differs from eager: out0: max abs diff 1.236e-02 at 36/900 elements; out1: max abs diff 6.971e-01 at 34/1200 elements",+ "operator": "RTDETR.from_config",+ "package": "kornia.models",+ "ref": "kornia.models.rt_detr.RTDETR.from_config",+ "section": "rt_detr",+ "variant": "r18vd,num_classes=3",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "config dataclass, not a callable graph",+ "export": "n/a",+ "export_detail": "config dataclass, not a callable graph",+ "graph_breaks": 0,+ "name": "models.rt_detr.RTDETRConfig",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "config dataclass, not a callable graph",+ "operator": "RTDETRConfig",+ "package": "kornia.models",+ "ref": "kornia.models.rt_detr.RTDETRConfig",+ "section": "rt_detr",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "enum",+ "export": "n/a",+ "export_detail": "enum",+ "graph_breaks": 0,+ "name": "models.rt_detr.RTDETRModelType",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "enum",+ "operator": "RTDETRModelType",+ "package": "kornia.models",+ "ref": "kornia.models.rt_detr.RTDETRModelType",+ "section": "rt_detr",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.rt_detr.DETRPostProcessor[confidence_filtering=False]",+ "note": "num_top_queries=300 baked; returns (1,300,6) tensor; uses topk + gather + mod",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "DETRPostProcessor",+ "package": "kornia.models",+ "ref": "kornia.models.rt_detr.DETRPostProcessor",+ "section": "rt_detr",+ "variant": "confidence_filtering=False",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.rt_detr.DETRPostProcessor[threshold=0.3,filter_as_zero]",+ "note": "threshold baked as buffer; filtered rows zeroed -> fixed shape",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "DETRPostProcessor",+ "package": "kornia.models",+ "ref": "kornia.models.rt_detr.DETRPostProcessor",+ "section": "rt_detr",+ "variant": "threshold=0.3,filter_as_zero",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.rt_detr.DETRPostProcessor[threshold=0.3,list output]",+ "note": "default: BoxFiltering returns Python list of (Di,6) tensors, data-dependent shapes",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "DETRPostProcessor",+ "package": "kornia.models",+ "ref": "kornia.models.rt_detr.DETRPostProcessor",+ "section": "rt_detr",+ "variant": "threshold=0.3,list output",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "forward(images, batched_prompts: list[dict], multimask_output: bool) -> list[SegmentationResults]; list/dict/bool inputs are not exportable \u2014 sub-modules export",+ "export": "n/a",+ "export_detail": "forward(images, batched_prompts: list[dict], multimask_output: bool) -> list[SegmentationResults]; list/dict/bool inputs are not exportable \u2014 sub-modules export",+ "graph_breaks": 0,+ "name": "models.sam.Sam.forward",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "forward(images, batched_prompts: list[dict], multimask_output: bool) -> list[SegmentationResults]; list/dict/bool inputs are not exportable \u2014 sub-modules export",+ "operator": "Sam.forward",+ "package": "kornia.models",+ "ref": "kornia.models.sam.Sam.forward",+ "section": "sam",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "config dataclass",+ "export": "n/a",+ "export_detail": "config dataclass",+ "graph_breaks": 0,+ "name": "models.sam.SamConfig",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "config dataclass",+ "operator": "SamConfig",+ "package": "kornia.models",+ "ref": "kornia.models.sam.SamConfig",+ "section": "sam",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "enum",+ "export": "n/a",+ "export_detail": "enum",+ "graph_breaks": 0,+ "name": "models.sam.SamModelType",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "enum",+ "operator": "SamModelType",+ "package": "kornia.models",+ "ref": "kornia.models.sam.SamModelType",+ "section": "sam",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "plain dataclass holding tensors, no computation",+ "export": "n/a",+ "export_detail": "plain dataclass holding tensors, no computation",+ "graph_breaks": 0,+ "name": "models.structures.Prompts",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "plain dataclass holding tensors, no computation",+ "operator": "structures.Prompts",+ "package": "kornia.models",+ "ref": "kornia.models.structures.Prompts",+ "section": "sam",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "2 graph breaks: Unsupported hasattr call\n Explanation: Dynamo does not know how to trace the function `zf92`\n Hint: Avoid calling `hasattr(SymNodeVariable, data)` in your cod",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 2,+ "name": "models.structures.SegmentationResults",+ "note": "dataclass container; `binary_masks` property = logits > 0",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "structures.SegmentationResults",+ "package": "kornia.models",+ "ref": "kornia.models.structures.SegmentationResults",+ "section": "sam",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.structures.SegmentationResults.binary_masks",+ "note": "mask_threshold=0.0 baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "structures.SegmentationResults.binary_masks",+ "package": "kornia.models",+ "ref": "kornia.models.structures.SegmentationResults.binary_masks",+ "section": "sam",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "weights 375 MB but ViT-B on a mandatory 1024x1024 input: random-init vit_b encoder exported instead (same graph); mobile_sam covers the pretrained path",+ "export": "n/a",+ "export_detail": "weights 375 MB but ViT-B on a mandatory 1024x1024 input: random-init vit_b encoder exported instead (same graph); mobile_sam covers the pretrained path",+ "graph_breaks": 0,+ "name": "models.sam.Sam.image_encoder[vit_b,pretrained]",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "weights 375 MB but ViT-B on a mandatory 1024x1024 input: random-init vit_b encoder exported instead (same graph); mobile_sam covers the pretrained path",+ "operator": "Sam.image_encoder",+ "package": "kornia.models",+ "ref": "",+ "section": "sam",+ "variant": "vit_b,pretrained",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "weights > 500 MB (1.25 GB)",+ "export": "n/a",+ "export_detail": "weights > 500 MB (1.25 GB)",+ "graph_breaks": 0,+ "name": "models.sam.Sam.image_encoder[vit_l]",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "weights > 500 MB (1.25 GB)",+ "operator": "Sam.image_encoder",+ "package": "kornia.models",+ "ref": "",+ "section": "sam",+ "variant": "vit_l",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "weights > 500 MB (2.56 GB)",+ "export": "n/a",+ "export_detail": "weights > 500 MB (2.56 GB)",+ "graph_breaks": 0,+ "name": "models.sam.Sam.image_encoder[vit_h]",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "weights > 500 MB (2.56 GB)",+ "operator": "Sam.image_encoder",+ "package": "kornia.models",+ "ref": "",+ "section": "sam",+ "variant": "vit_h",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "5 graph breaks: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 5,+ "name": "models.sam.Sam.prompt_encoder[points,mobile_sam]",+ "note": "points=(coords (1,2,2), labels (1,2) int64); pads with a -1 label point; boolean-mask indexed assignment `point_embedding[labels == -1] = 0.0`",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Sam.prompt_encoder",+ "package": "kornia.models",+ "ref": "",+ "section": "sam",+ "variant": "points,mobile_sam",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.sam.Sam.prompt_encoder[boxes,mobile_sam]",+ "note": "boxes (1,4) in 1024x1024 pixel coords",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Sam.prompt_encoder",+ "package": "kornia.models",+ "ref": "",+ "section": "sam",+ "variant": "boxes,mobile_sam",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.sam.Sam.prompt_encoder[masks,mobile_sam]",+ "note": "mask prompt (1,1,256,256) -> dense (1,256,64,64) via conv downscale",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Sam.prompt_encoder",+ "package": "kornia.models",+ "ref": "",+ "section": "sam",+ "variant": "masks,mobile_sam",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.sam.Sam.prompt_encoder.get_dense_pe[mobile_sam]",+ "note": "no tensor input: graph is a constant positional encoding (1,256,64,64)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Sam.prompt_encoder.get_dense_pe",+ "package": "kornia.models",+ "ref": "",+ "section": "sam",+ "variant": "mobile_sam",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.sam.Sam.mask_decoder[multimask,mobile_sam]",+ "note": "multimask_output=True baked; inputs image_embeddings/image_pe (1,256,64,64), sparse (1,3,256), dense (1,256,64,64); TwoWayTransformer",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Sam.mask_decoder",+ "package": "kornia.models",+ "ref": "",+ "section": "sam",+ "variant": "multimask,mobile_sam",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.sam.Sam.mask_decoder[single,mobile_sam]",+ "note": "multimask_output=False baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Sam.mask_decoder",+ "package": "kornia.models",+ "ref": "",+ "section": "sam",+ "variant": "single,mobile_sam",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "5 graph breaks: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 5,+ "name": "models.sam.Sam.prompt_encoder[points,vit_b,random]",+ "note": "points=(coords (1,2,2), labels (1,2) int64); pads with a -1 label point; boolean-mask indexed assignment `point_embedding[labels == -1] = 0.0`",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Sam.prompt_encoder",+ "package": "kornia.models",+ "ref": "",+ "section": "sam",+ "variant": "points,vit_b,random",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.sam.Sam.prompt_encoder[boxes,vit_b,random]",+ "note": "boxes (1,4) in 1024x1024 pixel coords",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Sam.prompt_encoder",+ "package": "kornia.models",+ "ref": "",+ "section": "sam",+ "variant": "boxes,vit_b,random",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.sam.Sam.prompt_encoder[masks,vit_b,random]",+ "note": "mask prompt (1,1,256,256) -> dense (1,256,64,64) via conv downscale",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Sam.prompt_encoder",+ "package": "kornia.models",+ "ref": "",+ "section": "sam",+ "variant": "masks,vit_b,random",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.sam.Sam.prompt_encoder.get_dense_pe[vit_b,random]",+ "note": "no tensor input: graph is a constant positional encoding (1,256,64,64)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Sam.prompt_encoder.get_dense_pe",+ "package": "kornia.models",+ "ref": "",+ "section": "sam",+ "variant": "vit_b,random",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.sam.Sam.mask_decoder[multimask,vit_b,random]",+ "note": "multimask_output=True baked; inputs image_embeddings/image_pe (1,256,64,64), sparse (1,3,256), dense (1,256,64,64); TwoWayTransformer",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Sam.mask_decoder",+ "package": "kornia.models",+ "ref": "",+ "section": "sam",+ "variant": "multimask,vit_b,random",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.sam.Sam.mask_decoder[single,vit_b,random]",+ "note": "multimask_output=False baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Sam.mask_decoder",+ "package": "kornia.models",+ "ref": "",+ "section": "sam",+ "variant": "single,vit_b,random",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.sam3.ImageEncoderHiera[tiny,random]",+ "note": "random init, img_size=64 (square, pos_embed fixed to img_size)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "ImageEncoderHiera",+ "package": "kornia.models",+ "ref": "",+ "section": "sam3",+ "variant": "tiny,random",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "default config = ViT-B at 1024x1024 random init; no weights loader exists in kornia; tiny variant exported",+ "export": "n/a",+ "export_detail": "default config = ViT-B at 1024x1024 random init; no weights loader exists in kornia; tiny variant exported",+ "graph_breaks": 0,+ "name": "models.sam3.ImageEncoderHiera[default 1024]",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "default config = ViT-B at 1024x1024 random init; no weights loader exists in kornia; tiny variant exported",+ "operator": "ImageEncoderHiera",+ "package": "kornia.models",+ "ref": "",+ "section": "sam3",+ "variant": "default 1024",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.yunet.YuNet[test,pretrained]",+ "note": "weights yunet_final.pth; dict outputs loc/conf/iou; H,W must be multiples of 32",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "YuNet",+ "package": "kornia.models",+ "ref": "",+ "section": "yunet",+ "variant": "test,pretrained",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.yunet.YuNet[test,batch2]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "YuNet",+ "package": "kornia.models",+ "ref": "",+ "section": "yunet",+ "variant": "test,batch2",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.yunet.processors.PriorBox",+ "note": "no tensor input: fully constant graph (priors for 64x96)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "processors.PriorBox",+ "package": "kornia.models",+ "ref": "",+ "section": "yunet",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.yunet.processors.decode",+ "note": "variances baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "processors.decode",+ "package": "kornia.models",+ "ref": "",+ "section": "yunet",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.dexined.DexiNed[pretrained]",+ "note": "weights DexiNed_BIPED_10.pth; output (1,1,H,W) | to_onnx(save=False) OK (133.99 MB, ['ai.onnx:18'], in [['input', ['s77', 3, 's53', 's0']]], out [['output', [1, 1, 's53', 's0']]])",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "DexiNed",+ "package": "kornia.models",+ "ref": "",+ "section": "dexined",+ "variant": "pretrained",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.dexined.DexiNed.get_features",+ "note": "returns list of 6 side outputs",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "DexiNed.get_features",+ "package": "kornia.models",+ "ref": "",+ "section": "dexined",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.dexined.DexiNed[batch2,48x64]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "DexiNed",+ "package": "kornia.models",+ "ref": "",+ "section": "dexined",+ "variant": "batch2,48x64",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "HFONNXComunnityModel: loads a pre-built ONNX graph from HF onnx-community and runs it with onnxruntime; not a torch module",+ "export": "n/a",+ "export_detail": "HFONNXComunnityModel: loads a pre-built ONNX graph from HF onnx-community and runs it with onnxruntime; not a torch module",+ "graph_breaks": 0,+ "name": "models.depth_estimation.DepthEstimation",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "HFONNXComunnityModel: loads a pre-built ONNX graph from HF onnx-community and runs it with onnxruntime; not a torch module",+ "operator": "DepthEstimation",+ "package": "kornia.models",+ "ref": "",+ "section": "depth_estimation",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "builder returns the onnx-community ONNX model wrapped in ONNXSequential; nothing to export",+ "export": "n/a",+ "export_detail": "builder returns the onnx-community ONNX model wrapped in ONNXSequential; nothing to export",+ "graph_breaks": 0,+ "name": "models.depth_estimation.DepthAnythingONNXBuilder",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "builder returns the onnx-community ONNX model wrapped in ONNXSequential; nothing to export",+ "operator": "DepthAnythingONNXBuilder",+ "package": "kornia.models",+ "ref": "",+ "section": "depth_estimation",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "does not run eagerly with the probed inputs: EOFError <- ModuleNotFoundError: No module named 'segmentation_models_pytorch'",+ "export": "n/a",+ "export_detail": "does not run eagerly with the probed inputs: EOFError <- ModuleNotFoundError: No module named 'segmentation_models_pytorch'",+ "graph_breaks": 0,+ "name": "models.segmentation.SegmentationModelsBuilder.build",+ "note": "segmentation_models_pytorch not installed -> ImportError expected; even with it installed the builder instantiates abstract SemanticSegmentation (no from_config, no __init__) -> TypeError (kornia bug)",+ "onnx": "n/a",+ "onnx_detail": "does not run eagerly with the probed inputs: EOFError <- ModuleNotFoundError: No module named 'segmentation_models_pytorch'",+ "operator": "SegmentationModelsBuilder.build",+ "package": "kornia.models",+ "ref": "kornia.models.segmentation.segmentation_models.SegmentationModelsBuilder.build",+ "section": "segmentation",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "does not run eagerly with the probed inputs: TypeError : Can't instantiate abstract class SemanticSegmentation with abstract method from_config",+ "export": "n/a",+ "export_detail": "does not run eagerly with the probed inputs: TypeError : Can't instantiate abstract class SemanticSegmentation with abstract method from_config",+ "graph_breaks": 0,+ "name": "models.segmentation.SemanticSegmentation",+ "note": "KORNIA BUG: abstract class (ModelBase.from_config not implemented) -> cannot be instantiated",+ "onnx": "n/a",+ "onnx_detail": "does not run eagerly with the probed inputs: TypeError : Can't instantiate abstract class SemanticSegmentation with abstract method from_config",+ "operator": "SemanticSegmentation",+ "package": "kornia.models",+ "ref": "",+ "section": "segmentation",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "abstract base class (from_config abstract)",+ "export": "n/a",+ "export_detail": "abstract base class (from_config abstract)",+ "graph_breaks": 0,+ "name": "models.base.ModelBase",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "abstract base class (from_config abstract)",+ "operator": "ModelBase",+ "package": "kornia.models",+ "ref": "kornia.models.base.ModelBase",+ "section": "base",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "file-IO / PIL helpers on ModelBase, not tensor graphs",+ "export": "n/a",+ "export_detail": "file-IO / PIL helpers on ModelBase, not tensor graphs",+ "graph_breaks": 0,+ "name": "models.base.ModelBase.save/load/resize",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "file-IO / PIL helpers on ModelBase, not tensor graphs",+ "operator": "ModelBase.save/load/resize",+ "package": "kornia.models",+ "ref": "",+ "section": "base",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "ORT wrapper around downloaded onnx-community graphs; not a torch module",+ "export": "n/a",+ "export_detail": "ORT wrapper around downloaded onnx-community graphs; not a torch module",+ "graph_breaks": 0,+ "name": "models._hf_models.HFONNXComunnityModel",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "ORT wrapper around downloaded onnx-community graphs; not a torch module",+ "operator": "_hf_models.HFONNXComunnityModel",+ "package": "kornia.models",+ "ref": "",+ "section": "base",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.efficient_vit.EfficientViT[b1-r224,pretrained]",+ "note": "weights HF kornia/efficientvit_imagenet_b1_r224 (b1-r224.pt); dict of stage features; 64x96 input",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "EfficientViT",+ "package": "kornia.models",+ "ref": "kornia.models.efficient_vit.EfficientViT",+ "section": "efficient_vit",+ "variant": "b1-r224,pretrained",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.efficient_vit.backbone.efficientvit_backbone_b0",+ "note": "random init; dict output",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "backbone.efficientvit_backbone_b0",+ "package": "kornia.models",+ "ref": "kornia.models.efficient_vit.backbone.efficientvit_backbone_b0",+ "section": "efficient_vit",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.efficient_vit.backbone.efficientvit_backbone_b1",+ "note": "random init",+ "onnx": "mismatch",+ "onnx_detail": "runs, but the result differs from eager: out5: NaN pattern differs (torch 0, ort 1536 NaNs); out6: NaN pattern differs (torch 0, ort 1536 NaNs)",+ "operator": "backbone.efficientvit_backbone_b1",+ "package": "kornia.models",+ "ref": "kornia.models.efficient_vit.backbone.efficientvit_backbone_b1",+ "section": "efficient_vit",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.efficient_vit.backbone.efficientvit_backbone_l0",+ "note": "random init (large family)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "backbone.efficientvit_backbone_l0",+ "package": "kornia.models",+ "ref": "kornia.models.efficient_vit.backbone.efficientvit_backbone_l0",+ "section": "efficient_vit",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "same architecture family as b0/b1/l0 with more channels/blocks; b2 not exported separately",+ "export": "n/a",+ "export_detail": "same architecture family as b0/b1/l0 with more channels/blocks; b2 not exported separately",+ "graph_breaks": 0,+ "name": "models.efficient_vit.backbone.efficientvit_backbone_b2",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "same architecture family as b0/b1/l0 with more channels/blocks; b2 not exported separately",+ "operator": "backbone.efficientvit_backbone_b2",+ "package": "kornia.models",+ "ref": "kornia.models.efficient_vit.backbone.efficientvit_backbone_b2",+ "section": "efficient_vit",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "same architecture family as b0/b1/l0 with more channels/blocks; b3 not exported separately",+ "export": "n/a",+ "export_detail": "same architecture family as b0/b1/l0 with more channels/blocks; b3 not exported separately",+ "graph_breaks": 0,+ "name": "models.efficient_vit.backbone.efficientvit_backbone_b3",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "same architecture family as b0/b1/l0 with more channels/blocks; b3 not exported separately",+ "operator": "backbone.efficientvit_backbone_b3",+ "package": "kornia.models",+ "ref": "kornia.models.efficient_vit.backbone.efficientvit_backbone_b3",+ "section": "efficient_vit",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "same architecture family as b0/b1/l0 with more channels/blocks; l1 not exported separately",+ "export": "n/a",+ "export_detail": "same architecture family as b0/b1/l0 with more channels/blocks; l1 not exported separately",+ "graph_breaks": 0,+ "name": "models.efficient_vit.backbone.efficientvit_backbone_l1",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "same architecture family as b0/b1/l0 with more channels/blocks; l1 not exported separately",+ "operator": "backbone.efficientvit_backbone_l1",+ "package": "kornia.models",+ "ref": "kornia.models.efficient_vit.backbone.efficientvit_backbone_l1",+ "section": "efficient_vit",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "same architecture family as b0/b1/l0 with more channels/blocks; l2 not exported separately",+ "export": "n/a",+ "export_detail": "same architecture family as b0/b1/l0 with more channels/blocks; l2 not exported separately",+ "graph_breaks": 0,+ "name": "models.efficient_vit.backbone.efficientvit_backbone_l2",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "same architecture family as b0/b1/l0 with more channels/blocks; l2 not exported separately",+ "operator": "backbone.efficientvit_backbone_l2",+ "package": "kornia.models",+ "ref": "kornia.models.efficient_vit.backbone.efficientvit_backbone_l2",+ "section": "efficient_vit",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "same architecture family as b0/b1/l0 with more channels/blocks; l3 not exported separately",+ "export": "n/a",+ "export_detail": "same architecture family as b0/b1/l0 with more channels/blocks; l3 not exported separately",+ "graph_breaks": 0,+ "name": "models.efficient_vit.backbone.efficientvit_backbone_l3",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "same architecture family as b0/b1/l0 with more channels/blocks; l3 not exported separately",+ "operator": "backbone.efficientvit_backbone_l3",+ "package": "kornia.models",+ "ref": "kornia.models.efficient_vit.backbone.efficientvit_backbone_l3",+ "section": "efficient_vit",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "class instantiated by efficientvit_backbone_b* factories (covered)",+ "export": "n/a",+ "export_detail": "class instantiated by efficientvit_backbone_b* factories (covered)",+ "graph_breaks": 0,+ "name": "models.efficient_vit.EfficientViTBackbone",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "class instantiated by efficientvit_backbone_b* factories (covered)",+ "operator": "EfficientViTBackbone",+ "package": "kornia.models",+ "ref": "kornia.models.efficient_vit.backbone.EfficientViTBackbone",+ "section": "efficient_vit",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "class instantiated by efficientvit_backbone_l* factories (covered)",+ "export": "n/a",+ "export_detail": "class instantiated by efficientvit_backbone_l* factories (covered)",+ "graph_breaks": 0,+ "name": "models.efficient_vit.EfficientViTLargeBackbone",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "class instantiated by efficientvit_backbone_l* factories (covered)",+ "operator": "EfficientViTLargeBackbone",+ "package": "kornia.models",+ "ref": "kornia.models.efficient_vit.backbone.EfficientViTLargeBackbone",+ "section": "efficient_vit",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.tiny_vit.TinyViT[5m,in1k]",+ "note": "weights tiny_vit_5m_224 in1k (HF kornia/tiny_vit); img_size=224 baked (window attention)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "TinyViT",+ "package": "kornia.models",+ "ref": "kornia.models.tiny_vit.TinyViT",+ "section": "tiny_vit",+ "variant": "5m,in1k",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.tiny_vit.TinyViT[5m,mobile_sam,random,img_size=64]",+ "note": "mobile_sam=True head: unflatten + neck -> (1,256,4,4)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "TinyViT",+ "package": "kornia.models",+ "ref": "kornia.models.tiny_vit.TinyViT",+ "section": "tiny_vit",+ "variant": "5m,mobile_sam,random,img_size=64",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "eager RuntimeError (view '[1,8,8,64]' invalid) \u2014 TinyViT hard-codes H=W=img_size in its window attention",+ "export": "n/a",+ "export_detail": "eager RuntimeError (view '[1,8,8,64]' invalid) \u2014 TinyViT hard-codes H=W=img_size in its window attention",+ "graph_breaks": 0,+ "name": "models.tiny_vit.TinyViT[non-square input]",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "eager RuntimeError (view '[1,8,8,64]' invalid) \u2014 TinyViT hard-codes H=W=img_size in its window attention",+ "operator": "TinyViT",+ "package": "kornia.models",+ "ref": "kornia.models.tiny_vit.TinyViT",+ "section": "tiny_vit",+ "variant": "non-square input",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "alias of kornia.models.tiny_vit.TinyViT (covered)",+ "export": "n/a",+ "export_detail": "alias of kornia.models.tiny_vit.TinyViT (covered)",+ "graph_breaks": 0,+ "name": "contrib.TinyViT",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "alias of kornia.models.tiny_vit.TinyViT (covered)",+ "operator": "TinyViT",+ "package": "kornia.contrib",+ "ref": "kornia.contrib.TinyViT",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.vit.VisionTransformer[small,random]",+ "note": "random init; image_size=32 patch=8; output (1,17,64)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "VisionTransformer",+ "package": "kornia.models",+ "ref": "kornia.models.vit.VisionTransformer",+ "section": "vit",+ "variant": "small,random",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "eager RuntimeError (pos-embed 17 vs 25 tokens) \u2014 VisionTransformer requires H=W=image_size (fixed pos_embed)",+ "export": "n/a",+ "export_detail": "eager RuntimeError (pos-embed 17 vs 25 tokens) \u2014 VisionTransformer requires H=W=image_size (fixed pos_embed)",+ "graph_breaks": 0,+ "name": "models.vit.VisionTransformer[non-square input]",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "eager RuntimeError (pos-embed 17 vs 25 tokens) \u2014 VisionTransformer requires H=W=image_size (fixed pos_embed)",+ "operator": "VisionTransformer",+ "package": "kornia.models",+ "ref": "kornia.models.vit.VisionTransformer",+ "section": "vit",+ "variant": "non-square input",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "86M-param random init (no pretrained weights shipped); small config covers the graph",+ "export": "n/a",+ "export_detail": "86M-param random init (no pretrained weights shipped); small config covers the graph",+ "graph_breaks": 0,+ "name": "models.vit.VisionTransformer.from_config[vit_b/16]",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "86M-param random init (no pretrained weights shipped); small config covers the graph",+ "operator": "VisionTransformer.from_config",+ "package": "kornia.models",+ "ref": "kornia.models.vit.VisionTransformer.from_config",+ "section": "vit",+ "variant": "vit_b/16",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.vit_mobile.MobileViT[xxs,random,64x128]",+ "note": "random init; H,W must be multiples of 64 (64x96 fails eagerly: view '[96,2,1,2]' invalid \u2014 stride-32 grid must be divisible by patch_size 2)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "MobileViT",+ "package": "kornia.models",+ "ref": "kornia.models.vit_mobile.MobileViT",+ "section": "vit_mobile",+ "variant": "xxs,random,64x128",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.vit_mobile.MobileViT[xxs,random,256]",+ "note": "documented input size 256x256",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "MobileViT",+ "package": "kornia.models",+ "ref": "kornia.models.vit_mobile.MobileViT",+ "section": "vit_mobile",+ "variant": "xxs,random,256",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.small_sr.SmallSRNet[x3,pretrained]",+ "note": "weights small_sr.pth; Y channel (1,1,H,W) -> (1,1,3H,3W) PixelShuffle",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "SmallSRNet",+ "package": "kornia.models",+ "ref": "",+ "section": "small_sr",+ "variant": "x3,pretrained",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.small_sr.SmallSRNetWrapper[x3,pretrained]",+ "note": "RGB->YCbCr, SR on Y, bicubic upsample CbCr, ->RGB",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "SmallSRNetWrapper",+ "package": "kornia.models",+ "ref": "",+ "section": "small_sr",+ "variant": "x3,pretrained",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "does not run eagerly with the probed inputs: TypeError : Can't instantiate abstract class SuperResolution with abstract method from_config",+ "export": "n/a",+ "export_detail": "does not run eagerly with the probed inputs: TypeError : Can't instantiate abstract class SuperResolution with abstract method from_config",+ "graph_breaks": 0,+ "name": "contrib.SuperResolution",+ "note": "KORNIA BUG: abstract (ModelBase.from_config not implemented, no __init__) -> TypeError",+ "onnx": "n/a",+ "onnx_detail": "does not run eagerly with the probed inputs: TypeError : Can't instantiate abstract class SuperResolution with abstract method from_config",+ "operator": "SuperResolution",+ "package": "kornia.contrib",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "does not run eagerly with the probed inputs: TypeError : Can't instantiate abstract class SuperResolution with abstract method from_config",+ "export": "n/a",+ "export_detail": "does not run eagerly with the probed inputs: TypeError : Can't instantiate abstract class SuperResolution with abstract method from_config",+ "graph_breaks": 0,+ "name": "contrib.SmallSRBuilder.build",+ "note": "KORNIA BUG: builder instantiates abstract SuperResolution -> TypeError at super_resolution.py:262",+ "onnx": "n/a",+ "onnx_detail": "does not run eagerly with the probed inputs: TypeError : Can't instantiate abstract class SuperResolution with abstract method from_config",+ "operator": "SmallSRBuilder.build",+ "package": "kornia.contrib",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "needs `basicsr` (not installed) and would hit the same abstract SuperResolution TypeError",+ "export": "n/a",+ "export_detail": "needs `basicsr` (not installed) and would hit the same abstract SuperResolution TypeError",+ "graph_breaks": 0,+ "name": "contrib.RRDBNetBuilder.build",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "needs `basicsr` (not installed) and would hit the same abstract SuperResolution TypeError",+ "operator": "RRDBNetBuilder.build",+ "package": "kornia.contrib",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.processors.ResizePreProcessor",+ "note": "size (32,40) baked; returns (resized, original_sizes); per-image Python loop",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "ResizePreProcessor",+ "package": "kornia.models",+ "ref": "kornia.models.processors.ResizePreProcessor",+ "section": "processors",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.processors.ResizePreProcessor[batch2]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "ResizePreProcessor",+ "package": "kornia.models",+ "ref": "kornia.models.processors.ResizePreProcessor",+ "section": "processors",+ "variant": "batch2",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "fail",+ "export_detail": "RuntimeError : .numpy() is not supported for tensor subclasses.",+ "graph_breaks": 0,+ "name": "models.processors.ResizePostProcessor",+ "note": "original_sizes via .cpu().numpy().tolist(); returns inputs unchanged when torch.onnx.is_in_onnx_export()",+ "onnx": "mismatch",+ "onnx_detail": "runs, but the result differs from eager: out0: shape (1, 1, 64, 96) vs (1, 1, 32, 40)",+ "operator": "ResizePostProcessor",+ "package": "kornia.models",+ "ref": "",+ "section": "processors",+ "variant": "",+ "where": "kornia/models/processors/__init__.py:142"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.processors.OutputRangePostProcessor",+ "note": "clamp(0,1) baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "OutputRangePostProcessor",+ "package": "kornia.models",+ "ref": "",+ "section": "processors",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.processors.NaFlex[interpolated pos]",+ "note": "pos-embed 4x4 grid interpolated to 4x6 with F.interpolate (bilinear); patch fn is a Conv2d",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "NaFlex",+ "package": "kornia.models",+ "ref": "",+ "section": "processors",+ "variant": "interpolated pos",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.processors.NaFlex[matching pos]",+ "note": "num_patches == pos rows -> plain add",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "NaFlex",+ "package": "kornia.models",+ "ref": "",+ "section": "processors",+ "variant": "matching pos",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "2 graph breaks: Unsupported method call\n Explanation: Dynamo does not know how to trace method `values` of class `<unknown type>`\n Hint: Avoid calling `<unknown type>.values`",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 2,+ "name": "models.siglip2.SigLip2Model[image only,tiny,random]",+ "note": "pure-PyTorch SigLIP2 (no transformers); tiny random config; SigLip2Result dataclass, None fields dropped",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "siglip2.SigLip2Model",+ "package": "kornia.models",+ "ref": "",+ "section": "vlm",+ "variant": "image only,tiny,random",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "3 graph breaks: Unsupported method call\n Explanation: Dynamo does not know how to trace method `values` of class `<unknown type>`\n Hint: Avoid calling `<unknown type>.values`",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 3,+ "name": "models.siglip2.SigLip2Model[image+text,tiny,random]",+ "note": "image+text -> embeds + logits_per_image/text",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "siglip2.SigLip2Model",+ "package": "kornia.models",+ "ref": "",+ "section": "vlm",+ "variant": "image+text,tiny,random",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "eager RuntimeError (pos-embed 4 vs 6 patches) \u2014 vision tower requires H=W=image_size (no pos-embed interpolation)",+ "export": "n/a",+ "export_detail": "eager RuntimeError (pos-embed 4 vs 6 patches) \u2014 vision tower requires H=W=image_size (no pos-embed interpolation)",+ "graph_breaks": 0,+ "name": "models.siglip2.SigLip2Model.get_image_features[non-square]",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "eager RuntimeError (pos-embed 4 vs 6 patches) \u2014 vision tower requires H=W=image_size (no pos-embed interpolation)",+ "operator": "siglip2.SigLip2Model.get_image_features",+ "package": "kornia.models",+ "ref": "",+ "section": "vlm",+ "variant": "non-square",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.siglip2.SigLip2ImagePreprocessor",+ "note": "Rescale(1/255) + Resize bicubic antialias + Normalize; size baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "siglip2.SigLip2ImagePreprocessor",+ "package": "kornia.models",+ "ref": "",+ "section": "vlm",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "downloads google/siglip2-base-patch16-224 safetensors (~1.5 GB) from HF; weights > 500 MB",+ "export": "n/a",+ "export_detail": "downloads google/siglip2-base-patch16-224 safetensors (~1.5 GB) from HF; weights > 500 MB",+ "graph_breaks": 0,+ "name": "models.siglip2.SigLip2Builder.from_pretrained_hf",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "downloads google/siglip2-base-patch16-224 safetensors (~1.5 GB) from HF; weights > 500 MB",+ "operator": "siglip2.SigLip2Builder.from_pretrained_hf",+ "package": "kornia.models",+ "ref": "",+ "section": "vlm",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "random-init base config (~375M params); tiny random config covers the same graph",+ "export": "n/a",+ "export_detail": "random-init base config (~375M params); tiny random config covers the same graph",+ "graph_breaks": 0,+ "name": "models.siglip2.SigLip2Builder.from_name",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "random-init base config (~375M params); tiny random config covers the same graph",+ "operator": "siglip2.SigLip2Builder.from_name",+ "package": "kornia.models",+ "ref": "",+ "section": "vlm",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "config / result dataclasses",+ "export": "n/a",+ "export_detail": "config / result dataclasses",+ "graph_breaks": 0,+ "name": "models.siglip2.SigLip2Config/SigLip2Result",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "config / result dataclasses",+ "operator": "siglip2.SigLip2Config/SigLip2Result",+ "package": "kornia.models",+ "ref": "",+ "section": "vlm",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.kimi_vl.MoonViT[tiny,random]",+ "note": "pure-PyTorch MoonViT; 2x3 patches vs 2x2 pos-embed -> interpolation path; 2D RoPE",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "kimi_vl.MoonViT",+ "package": "kornia.models",+ "ref": "",+ "section": "vlm",+ "variant": "tiny,random",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.kimi_vl.KimiVLModel[tiny,random]",+ "note": "MoonViT + pixel-unshuffle projector; h,w patch grid from input shape",+ "onnx": "mismatch",+ "onnx_detail": "runs, but the result differs from eager: out0: max abs diff 6.201e-01 at 48/48 elements",+ "operator": "kimi_vl.KimiVLModel",+ "package": "kornia.models",+ "ref": "",+ "section": "vlm",+ "variant": "tiny,random",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "weights > 500 MB (Kimi-VL-A3B-Instruct vision tower + projector safetensors, multi-GB download)",+ "export": "n/a",+ "export_detail": "weights > 500 MB (Kimi-VL-A3B-Instruct vision tower + projector safetensors, multi-GB download)",+ "graph_breaks": 0,+ "name": "models.kimi_vl.KimiVLBuilder",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "weights > 500 MB (Kimi-VL-A3B-Instruct vision tower + projector safetensors, multi-GB download)",+ "operator": "kimi_vl.KimiVLBuilder",+ "package": "kornia.models",+ "ref": "kornia.models.kimi_vl.KimiVLBuilder",+ "section": "vlm",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "covered inside KimiVLModel case (needs h,w ints)",+ "export": "n/a",+ "export_detail": "covered inside KimiVLModel case (needs h,w ints)",+ "graph_breaks": 0,+ "name": "models.kimi_vl.KimiVLProjector",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "covered inside KimiVLModel case (needs h,w ints)",+ "operator": "kimi_vl.KimiVLProjector",+ "package": "kornia.models",+ "ref": "",+ "section": "vlm",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.qwen25.Qwen2VLVisionTransformer[tiny,random]",+ "note": "pure-PyTorch skeleton; conv14 patch embed + rotary attention blocks",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "qwen25.Qwen2VLVisionTransformer",+ "package": "kornia.models",+ "ref": "",+ "section": "vlm",+ "variant": "tiny,random",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.paligemma.PaliGemma[tiny,random]",+ "note": "pure-PyTorch SigLIP2 tower + Gemma decoder (RMSNorm, RoPE, GQA); inputs (input_ids, pixel_values)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "paligemma.PaliGemma",+ "package": "kornia.models",+ "ref": "",+ "section": "vlm",+ "variant": "tiny,random",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.smolvlm2.SmolVLM2",+ "note": "placeholder scaffold: sum of two Linear projections; image/text sequences must have equal length",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "smolvlm2.SmolVLM2",+ "package": "kornia.models",+ "ref": "",+ "section": "vlm",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "contrib.extract_tensor_patches",+ "note": "window 8, stride 8 baked -> (1,24,2,8,8)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "extract_tensor_patches",+ "package": "kornia.contrib",+ "ref": "kornia.contrib.extract_tensor_patches",+ "section": "patches",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "contrib.extract_tensor_patches[rect window,stride,padding]",+ "note": "non-square window/stride, padding (2,3)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "extract_tensor_patches",+ "package": "kornia.contrib",+ "ref": "kornia.contrib.extract_tensor_patches",+ "section": "patches",+ "variant": "rect window,stride,padding",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "contrib.extract_tensor_patches[allow_auto_padding]",+ "note": "auto padding computed from static shape",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "extract_tensor_patches",+ "package": "kornia.contrib",+ "ref": "kornia.contrib.extract_tensor_patches",+ "section": "patches",+ "variant": "allow_auto_padding",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "contrib.extract_tensor_patches[batch2]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "extract_tensor_patches",+ "package": "kornia.contrib",+ "ref": "kornia.contrib.extract_tensor_patches",+ "section": "patches",+ "variant": "batch2",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "contrib.ExtractTensorPatches",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "ExtractTensorPatches",+ "package": "kornia.contrib",+ "ref": "kornia.contrib.ExtractTensorPatches",+ "section": "patches",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "contrib.combine_tensor_patches",+ "note": "original_size/window/stride baked; fold + overlap norm",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "combine_tensor_patches",+ "package": "kornia.contrib",+ "ref": "kornia.contrib.combine_tensor_patches",+ "section": "patches",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "contrib.combine_tensor_patches[overlap,unpadding]",+ "note": "overlapping windows: divides by ones-fold count (eps=1e-8)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "combine_tensor_patches",+ "package": "kornia.contrib",+ "ref": "kornia.contrib.combine_tensor_patches",+ "section": "patches",+ "variant": "overlap,unpadding",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "contrib.combine_tensor_patches[allow_auto_unpadding]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "combine_tensor_patches",+ "package": "kornia.contrib",+ "ref": "kornia.contrib.combine_tensor_patches",+ "section": "patches",+ "variant": "allow_auto_unpadding",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "contrib.CombineTensorPatches",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "CombineTensorPatches",+ "package": "kornia.contrib",+ "ref": "kornia.contrib.CombineTensorPatches",+ "section": "patches",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "returns no tensor (Python object output), nothing to capture",+ "export": "n/a",+ "export_detail": "returns no tensor (Python object output), nothing to capture",+ "graph_breaks": 0,+ "name": "contrib.compute_padding",+ "note": "returns tuple of Python ints -> expected no-tensor-output",+ "onnx": "n/a",+ "onnx_detail": "returns no tensor (Python object output), nothing to capture",+ "operator": "compute_padding",+ "package": "kornia.contrib",+ "ref": "kornia.contrib.compute_padding",+ "section": "patches",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "contrib.connected_components",+ "note": "num_iterations=50 baked (Python for-loop unrolled into 50 max_pool2d stages); input 0/1 float mask",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "connected_components",+ "package": "kornia.contrib",+ "ref": "kornia.contrib.connected_components",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "contrib.connected_components[batch2,default 100 it]",+ "note": "100 unrolled iterations",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "connected_components",+ "package": "kornia.contrib",+ "ref": "kornia.contrib.connected_components",+ "section": "",+ "variant": "batch2,default 100 it",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "contrib.distance_transform",+ "note": "kernel_size=3, h=0.35 baked; Python loop over max(H,W)//2 iterations unrolled",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "distance_transform",+ "package": "kornia.contrib",+ "ref": "kornia.contrib.distance_transform",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "contrib.distance_transform[kernel_size=5]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "distance_transform",+ "package": "kornia.contrib",+ "ref": "kornia.contrib.distance_transform",+ "section": "",+ "variant": "kernel_size=5",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "contrib.distance_transform[3d]",+ "note": "3D input path",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "distance_transform",+ "package": "kornia.contrib",+ "ref": "kornia.contrib.distance_transform",+ "section": "",+ "variant": "3d",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "contrib.DistanceTransform",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "DistanceTransform",+ "package": "kornia.contrib",+ "ref": "kornia.contrib.DistanceTransform",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "contrib.diamond_square",+ "note": "no tensor input; torch.rand inside graph (RandomUniformLike); output_size baked",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "diamond_square",+ "package": "kornia.contrib",+ "ref": "kornia.contrib.diamond_square",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-unverified",+ "compile_detail": "random operator: compiled and ran; only output shape and finiteness are checked",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "contrib.diamond_square[normalize_range]",+ "note": "normalize_range applied",+ "onnx": "ok-unverified",+ "onnx_detail": "random operator: exported and ran; only output shape and finiteness are checked",+ "operator": "diamond_square",+ "package": "kornia.contrib",+ "ref": "kornia.contrib.diamond_square",+ "section": "",+ "variant": "normalize_range",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "2 graph breaks: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 2,+ "name": "contrib.histogram_matching",+ "note": "unique(return_inverse, return_counts) + cumsum + interp",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "histogram_matching",+ "package": "kornia.contrib",+ "ref": "",+ "section": "",+ "variant": "",+ "where": "kornia/contrib/histogram_matching.py:83"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "contrib.interp",+ "note": "1-D linear interp via searchsorted/bucketize",+ "onnx": "fail",+ "onnx_detail": "no ONNX lowering for torch.searchsorted",+ "operator": "interp",+ "package": "kornia.contrib",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "contrib.KMeans.predict",+ "note": "cluster centers fixed (3,2); argmin of pairwise distances",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "KMeans.predict",+ "package": "kornia.contrib",+ "ref": "kornia.contrib.KMeans.predict",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "2 graph breaks: Attempted to call function marked as skipped\n Explanation: Dynamo developers have intentionally marked that the function `manual_seed` in file `/home/shij0c/gi",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 2,+ "name": "contrib.KMeans.fit",+ "note": "max_iterations=5, tolerance=None (fixed iteration count) but fit() uses torch.nonzero + data-dependent `if selected.shape[0] == 0` per cluster",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "KMeans.fit",+ "package": "kornia.contrib",+ "ref": "kornia.contrib.KMeans.fit",+ "section": "",+ "variant": "",+ "where": "kornia/contrib/kmeans.py:185"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "contrib.Lambda",+ "note": "wraps rgb_to_grayscale",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Lambda",+ "package": "kornia.contrib",+ "ref": "kornia.contrib.Lambda",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "3 graph breaks: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 3,+ "name": "contrib.FaceDetector",+ "note": "YuNet + PriorBox + decode + confidence mask + NMS; returns list of (N,15); data-dependent shapes",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "FaceDetector",+ "package": "kornia.contrib",+ "ref": "kornia.contrib.FaceDetector",+ "section": "wrappers",+ "variant": "",+ "where": "kornia/geometry/bbox.py:575"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "contrib.FaceDetector.model",+ "note": "the underlying YuNet only (as FaceDetector.model)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "FaceDetector.model",+ "package": "kornia.contrib",+ "ref": "",+ "section": "wrappers",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "contrib.FaceDetectorResult",+ "note": "property accessors on a (15,) detection vector; __init__ requires len(data) >= 15 (message says 14) so a (N,15) batch with N<15 is rejected",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "FaceDetectorResult",+ "package": "kornia.contrib",+ "ref": "kornia.contrib.FaceDetectorResult",+ "section": "wrappers",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "enum",+ "export": "n/a",+ "export_detail": "enum",+ "graph_breaks": 0,+ "name": "contrib.FaceKeypoint",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "enum",+ "operator": "FaceKeypoint",+ "package": "kornia.contrib",+ "ref": "kornia.contrib.FaceKeypoint",+ "section": "wrappers",+ "variant": "",+ "where": ""+ },+ {+ "compile": "fail",+ "compile_detail": "inductor bug in this torch version (KeyError on a tensor storage while lowering the graph)",+ "export": "fail",+ "export_detail": "RuntimeError : .numpy() is not supported for tensor subclasses.",+ "graph_breaks": 0,+ "name": "contrib.EdgeDetectorBuilder.build[dexined,image_size=64]",+ "note": "Normalize -> DexiNed -> Sigmoid with ResizePreProcessor(64,64) and ResizePostProcessor (numpy tolist); image_size=64 baked | to_onnx(save=False) OK (134.07 MB, ['ai.onnx:18'], in [['input', ['s34', 3, 352, 352]]], out [['output', [1, 1, 64, 64]]])",+ "onnx": "mismatch",+ "onnx_detail": "runs, but the result differs from eager: out0: shape (1, 1, 48, 80) vs (1, 1, 64, 64)",+ "operator": "EdgeDetectorBuilder.build",+ "package": "kornia.contrib",+ "ref": "kornia.contrib.edge_detection.EdgeDetectorBuilder.build",+ "section": "wrappers",+ "variant": "dexined,image_size=64",+ "where": "kornia/models/processors/__init__.py:142"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "contrib.EdgeDetector.model",+ "note": "core nn.Sequential(Normalize, DexiNed, Sigmoid) without pre/post processors",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "EdgeDetector.model",+ "package": "kornia.contrib",+ "ref": "",+ "section": "wrappers",+ "variant": "",+ "where": ""+ },+ {+ "compile": "fail",+ "compile_detail": "inductor bug in this torch version (KeyError on a tensor storage while lowering the graph)",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "contrib.RTDETRDetectorBuilder.build[r18vd,image_size=256,threshold=0]",+ "note": "ObjectDetector = ResizePreProcessor(256,256) + RTDETR + DETRPostProcessor; threshold 0 -> all 300 boxes (1,300,6). KORNIA BUG: builder passes `confidence_filtering or not is_in_onnx_export()` so confidence_filtering=False is ignored at build time (list output); forward is @torch.inference_mode() | to_onnx(save=False) OK (78.67 MB, ['ai.onnx:18'], in [['input', ['s34', 3, 256, 256]]], out [['output', ['u0', 6]]])",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RTDETRDetectorBuilder.build",+ "package": "kornia.contrib",+ "ref": "kornia.contrib.object_detection.RTDETRDetectorBuilder.build",+ "section": "wrappers",+ "variant": "r18vd,image_size=256,threshold=0",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "1 graph break: the output shape depends on tensor values (nonzero / boolean indexing)",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 1,+ "name": "contrib.RTDETRDetectorBuilder.build[r18vd,threshold=0.3,list output]",+ "note": "default confidence_filtering=True unless is_in_onnx_export(); list of (Di,6) tensors | to_onnx(save=False) OK (78.22 MB, ['ai.onnx:18'], in [['input', ['s34', 3, 256, 256]]], out [['output', [1, 300, 80]], ['select_27', ['s34', 300, 4]]])",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "RTDETRDetectorBuilder.build",+ "package": "kornia.contrib",+ "ref": "kornia.contrib.object_detection.RTDETRDetectorBuilder.build",+ "section": "wrappers",+ "variant": "r18vd,threshold=0.3,list output",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "constructed by RTDETRDetectorBuilder (covered)",+ "export": "n/a",+ "export_detail": "constructed by RTDETRDetectorBuilder (covered)",+ "graph_breaks": 0,+ "name": "contrib.ObjectDetector",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "constructed by RTDETRDetectorBuilder (covered)",+ "operator": "ObjectDetector",+ "package": "kornia.contrib",+ "ref": "kornia.contrib.object_detection.ObjectDetector",+ "section": "wrappers",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "dataclasses / enum",+ "export": "n/a",+ "export_detail": "dataclasses / enum",+ "graph_breaks": 0,+ "name": "contrib.ObjectDetectorResult/BoundingBox/BoundingBoxDataFormat",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "dataclasses / enum",+ "operator": "ObjectDetectorResult/BoundingBox/BoundingBoxDataFormat",+ "package": "kornia.contrib",+ "ref": "",+ "section": "wrappers",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "returns a Python list of ObjectDetectorResult dataclasses",+ "export": "n/a",+ "export_detail": "returns a Python list of ObjectDetectorResult dataclasses",+ "graph_breaks": 0,+ "name": "contrib.object_detection.results_from_detections",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "returns a Python list of ObjectDetectorResult dataclasses",+ "operator": "object_detection.results_from_detections",+ "package": "kornia.contrib",+ "ref": "kornia.contrib.object_detection.results_from_detections",+ "section": "wrappers",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "re-export of kornia.models.processors.ResizePreProcessor (covered)",+ "export": "n/a",+ "export_detail": "re-export of kornia.models.processors.ResizePreProcessor (covered)",+ "graph_breaks": 0,+ "name": "contrib.object_detection.ResizePreProcessor",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "re-export of kornia.models.processors.ResizePreProcessor (covered)",+ "operator": "object_detection.ResizePreProcessor",+ "package": "kornia.contrib",+ "ref": "kornia.contrib.object_detection.ResizePreProcessor",+ "section": "wrappers",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "contrib.object_detection.BoxFiltering[filter_as_zero]",+ "note": "threshold passed as 0-d tensor input; `confidence_threshold or self.confidence_threshold` -> bool() on tensor",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "object_detection.BoxFiltering",+ "package": "kornia.contrib",+ "ref": "",+ "section": "wrappers",+ "variant": "filter_as_zero",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "contrib.object_detection.BoxFiltering[filter_as_zero,classes_to_keep]",+ "note": "threshold + classes baked as buffers",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "object_detection.BoxFiltering",+ "package": "kornia.contrib",+ "ref": "",+ "section": "wrappers",+ "variant": "filter_as_zero,classes_to_keep",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "-1 graph breaks",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": -1,+ "name": "contrib.object_detection.BoxFiltering[list output]",+ "note": "returns list of variable-size tensors",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "object_detection.BoxFiltering",+ "package": "kornia.contrib",+ "ref": "",+ "section": "wrappers",+ "variant": "list output",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "LoFTR matcher + RANSAC (Python loop over data-dependent inlier counts) + `.item()` in postprocess; variable-arity forward(*imgs) \u2014 blocker recorded, not exporta",+ "export": "n/a",+ "export_detail": "LoFTR matcher + RANSAC (Python loop over data-dependent inlier counts) + `.item()` in postprocess; variable-arity forward(*imgs) \u2014 blocker recorded, not exporta",+ "graph_breaks": 0,+ "name": "contrib.ImageStitcher",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "LoFTR matcher + RANSAC (Python loop over data-dependent inlier counts) + `.item()` in postprocess; variable-arity forward(*imgs) \u2014 blocker recorded, not exporta",+ "operator": "ImageStitcher",+ "package": "kornia.contrib",+ "ref": "kornia.contrib.ImageStitcher",+ "section": "wrappers",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "stateful plain-Python API (set_image/predict) over SAM with Keypoints/Boxes prompts; sub-modules covered by models.sam cases; default config is vit_h (>500 MB)",+ "export": "n/a",+ "export_detail": "stateful plain-Python API (set_image/predict) over SAM with Keypoints/Boxes prompts; sub-modules covered by models.sam cases; default config is vit_h (>500 MB)",+ "graph_breaks": 0,+ "name": "contrib.VisualPrompter",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "stateful plain-Python API (set_image/predict) over SAM with Keypoints/Boxes prompts; sub-modules covered by models.sam cases; default config is vit_h (>500 MB)",+ "operator": "VisualPrompter",+ "package": "kornia.contrib",+ "ref": "kornia.contrib.visual_prompter.VisualPrompter",+ "section": "wrappers",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "`boxmot` not installed; stateful tracker",+ "export": "n/a",+ "export_detail": "`boxmot` not installed; stateful tracker",+ "graph_breaks": 0,+ "name": "contrib.BoxMotTracker",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "`boxmot` not installed; stateful tracker",+ "operator": "BoxMotTracker",+ "package": "kornia.contrib",+ "ref": "kornia.contrib.boxmot_tracker.BoxMotTracker",+ "section": "wrappers",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "stateful tracker (GFTTAffNetHardNet + LoFTR + RANSAC) returning (H, bool); RANSAC and LoFTR coarse matching are data-dependent \u2014 blocker recorded",+ "export": "n/a",+ "export_detail": "stateful tracker (GFTTAffNetHardNet + LoFTR + RANSAC) returning (H, bool); RANSAC and LoFTR coarse matching are data-dependent \u2014 blocker recorded",+ "graph_breaks": 0,+ "name": "tracking.HomographyTracker",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "stateful tracker (GFTTAffNetHardNet + LoFTR + RANSAC) returning (H, bool); RANSAC and LoFTR coarse matching are data-dependent \u2014 blocker recorded",+ "operator": "HomographyTracker",+ "package": "kornia.tracking",+ "ref": "kornia.tracking.HomographyTracker",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "1 graph break: Unexpected type in sourceless builder\n Explanation: SourcelessBuilder.create does not know how to wrap <class 'types.UnionType'>\n Hint: This is likely to be a",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 1,+ "name": "sensors.camera.PinholeModel.project",+ "note": "params (fx,fy,cx,cy) baked; Vector3 in -> Vector2 out (.data)",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "PinholeModel.project",+ "package": "kornia.sensors",+ "ref": "",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "2 graph breaks: Unexpected type in sourceless builder\n Explanation: SourcelessBuilder.create does not know how to wrap <class 'types.UnionType'>\n Hint: This is likely to be a",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 2,+ "name": "sensors.camera.PinholeModel.unproject",+ "note": "depth as live tensor",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "PinholeModel.unproject",+ "package": "kornia.sensors",+ "ref": "",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "sensors.camera.PinholeModel.matrix",+ "note": "no tensor input: constant 3x3 K",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "PinholeModel.matrix",+ "package": "kornia.sensors",+ "ref": "kornia.sensors.camera.PinholeModel.matrix",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "sensors.camera.PinholeModel.scale",+ "note": "scale factor live tensor; returns new model params",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "PinholeModel.scale",+ "package": "kornia.sensors",+ "ref": "kornia.sensors.camera.PinholeModel.scale",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "1 graph break: Unexpected type in sourceless builder\n Explanation: SourcelessBuilder.create does not know how to wrap <class 'types.UnionType'>\n Hint: This is likely to be a",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 1,+ "name": "sensors.camera.CameraModel[pinhole].project",+ "note": "generic wrapper delegating via __getattr__",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "CameraModel[pinhole].project",+ "package": "kornia.sensors",+ "ref": "",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "raises NotImplementedError in kornia (BrownConradyTransform.distort is a stub)",+ "export": "n/a",+ "export_detail": "raises NotImplementedError in kornia (BrownConradyTransform.distort is a stub)",+ "graph_breaks": 0,+ "name": "sensors.camera.BrownConradyModel.project",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "raises NotImplementedError in kornia (BrownConradyTransform.distort is a stub)",+ "operator": "BrownConradyModel.project",+ "package": "kornia.sensors",+ "ref": "",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "raises NotImplementedError in kornia (KannalaBrandtK3Transform.distort is a stub)",+ "export": "n/a",+ "export_detail": "raises NotImplementedError in kornia (KannalaBrandtK3Transform.distort is a stub)",+ "graph_breaks": 0,+ "name": "sensors.camera.KannalaBrandtK3.project",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "raises NotImplementedError in kornia (KannalaBrandtK3Transform.distort is a stub)",+ "operator": "KannalaBrandtK3.project",+ "package": "kornia.sensors",+ "ref": "",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "raises NotImplementedError in kornia (Orthographic.project is a stub)",+ "export": "n/a",+ "export_detail": "raises NotImplementedError in kornia (Orthographic.project is a stub)",+ "graph_breaks": 0,+ "name": "sensors.camera.Orthographic.project",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "raises NotImplementedError in kornia (Orthographic.project is a stub)",+ "operator": "Orthographic.project",+ "package": "kornia.sensors",+ "ref": "",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "base class / enum",+ "export": "n/a",+ "export_detail": "base class / enum",+ "graph_breaks": 0,+ "name": "sensors.camera.CameraModelBase/CameraModelType",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "base class / enum",+ "operator": "CameraModelBase/CameraModelType",+ "package": "kornia.sensors",+ "ref": "",+ "section": "camera",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "image.Image.to_gray",+ "note": "Image container (C,H,W) float32; RGB->gray",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Image.to_gray",+ "package": "kornia.image",+ "ref": "kornia.image.Image.to_gray",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "image.Image.to_bgr",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Image.to_bgr",+ "package": "kornia.image",+ "ref": "kornia.image.Image.to_bgr",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "image.Image.to_rgb[from bgr]",+ "note": "",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Image.to_rgb",+ "package": "kornia.image",+ "ref": "kornia.image.Image.to_rgb",+ "section": "",+ "variant": "from bgr",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "image.Image.float",+ "note": "dtype no-op",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Image.float",+ "package": "kornia.image",+ "ref": "kornia.image.Image.float",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "numpy / file IO",+ "export": "n/a",+ "export_detail": "numpy / file IO",+ "graph_breaks": 0,+ "name": "image.Image.from_numpy/to_numpy/write/from_file",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "numpy / file IO",+ "operator": "Image.from_numpy/to_numpy/write/from_file",+ "package": "kornia.image",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "metadata dataclasses / enums",+ "export": "n/a",+ "export_detail": "metadata dataclasses / enums",+ "graph_breaks": 0,+ "name": "image.ImageSize/ImageLayout/PixelFormat/ChannelsOrder",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "metadata dataclasses / enums",+ "operator": "ImageSize/ImageLayout/PixelFormat/ChannelsOrder",+ "package": "kornia.image",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "numpy <-> tensor conversion utilities (numpy input)",+ "export": "n/a",+ "export_detail": "numpy <-> tensor conversion utilities (numpy input)",+ "graph_breaks": 0,+ "name": "image.image_to_tensor/tensor_to_image/ImageToTensor/image_list_to_tensor",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "numpy <-> tensor conversion utilities (numpy input)",+ "operator": "image_to_tensor/tensor_to_image/ImageToTensor/image_list_to_tensor",+ "package": "kornia.image",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "return/print strings",+ "export": "n/a",+ "export_detail": "return/print strings",+ "graph_breaks": 0,+ "name": "image.image_to_string/print_image",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "return/print strings",+ "operator": "image_to_string/print_image",+ "package": "kornia.image",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "n/a",+ "compile_detail": "decorators",+ "export": "n/a",+ "export_detail": "decorators",+ "graph_breaks": 0,+ "name": "image.perform_keep_shape_image/video",+ "note": "",+ "onnx": "n/a",+ "onnx_detail": "decorators",+ "operator": "perform_keep_shape_image/video",+ "package": "kornia.image",+ "ref": "",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "15 graph breaks: a tensor value is read back into Python (.item() / bool()) during the forward",+ "export": "fail",+ "export_detail": "a Python branch (if / while) tests tensor values at run time",+ "graph_breaks": 15,+ "name": "image.draw_line",+ "note": "Bresenham-like Python loop over max(|dx|,|dy|) computed from tensor values",+ "onnx": "fail",+ "onnx_detail": "a Python branch (if / while) tests tensor values at run time",+ "operator": "draw_line",+ "package": "kornia.image",+ "ref": "kornia.image.draw_line",+ "section": "",+ "variant": "",+ "where": "kornia/image/draw.py:102"+ },+ {+ "compile": "fail",+ "compile_detail": "a tensor value is read back into Python (.item() / bool()) during the forward",+ "export": "fail",+ "export_detail": "a tensor value is read back into Python (.item() / bool()) during the forward",+ "graph_breaks": 0,+ "name": "image.draw_point2d",+ "note": "`zip(*points)` iterates tensor rows in Python",+ "onnx": "fail",+ "onnx_detail": "a tensor value is read back into Python (.item() / bool()) during the forward",+ "operator": "draw_point2d",+ "package": "kornia.image",+ "ref": "kornia.image.draw_point2d",+ "section": "",+ "variant": "",+ "where": "kornia/image/draw.py:53"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 0,+ "name": "image.draw_rectangle",+ "note": "Python loop over batch and boxes with tensor-derived slicing",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "draw_rectangle",+ "package": "kornia.image",+ "ref": "kornia.image.draw_rectangle",+ "section": "",+ "variant": "",+ "where": "kornia/image/draw.py:269"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "fail",+ "export_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "graph_breaks": 0,+ "name": "image.draw_rectangle[fill]",+ "note": "",+ "onnx": "fail",+ "onnx_detail": "a Python integer (an index, loop count or size) is computed from tensor values at run time",+ "operator": "draw_rectangle",+ "package": "kornia.image",+ "ref": "kornia.image.draw_rectangle",+ "section": "",+ "variant": "fill",+ "where": "kornia/image/draw.py:265"+ },+ {+ "compile": "ok-breaks",+ "compile_detail": "3 graph breaks: Data dependent operator\n Explanation: Operator `aten.allclose.default` has a non-Tensor output whose value is dependent on the data of Tensor inputs.\n Hint: C",+ "export": "fail",+ "export_detail": "allclose produces a Python value from tensor values (no graph output)",+ "graph_breaks": 3,+ "name": "image.draw_convex_polygon",+ "note": "polygon rasterisation via edge functions (vectorised)",+ "onnx": "fail",+ "onnx_detail": "allclose produces a Python value from tensor values (no graph output)",+ "operator": "draw_convex_polygon",+ "package": "kornia.image",+ "ref": "kornia.image.draw_convex_polygon",+ "section": "",+ "variant": "",+ "where": "kornia/image/draw.py:302"+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "image.make_grid",+ "note": "n_row, padding baked",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "make_grid",+ "package": "kornia.image",+ "ref": "kornia.image.make_grid",+ "section": "",+ "variant": "",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.sam.Sam.image_encoder[mobile_sam,pretrained]",+ "note": "weights mobile_sam.pt (HF kornia/mobile_sam); TinyViT-5m img_size=1024 mobile_sam head -> (1,256,64,64); 1024x1024 input mandatory | to_onnx(save=False) OK (27.51 MB, ['ai.onnx:18'], in [['input', ['s77', 3, 1024, 1024]]], out [['image_embeddings', [1, 256, 64, 64]]])",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Sam.image_encoder",+ "package": "kornia.models",+ "ref": "kornia.models.tiny_vit.TinyViT",+ "section": "sam",+ "variant": "mobile_sam,pretrained",+ "where": ""+ },+ {+ "compile": "ok",+ "compile_detail": "",+ "export": "ok",+ "export_detail": "",+ "graph_breaks": 0,+ "name": "models.sam.Sam.image_encoder[vit_b,random]",+ "note": "ImageEncoderViT ViT-B, window attention 14, random init; 1024x1024 mandatory (abs pos_embed 64x64) | to_onnx(save=False) OK (351.18 MB, ['ai.onnx:18'], in [['input', ['s77', 3, 1024, 1024]]], out [['image_embeddings', [1, 256, 64, 64]]])",+ "onnx": "ok",+ "onnx_detail": "",+ "operator": "Sam.image_encoder",+ "package": "kornia.models",+ "ref": "",+ "section": "sam",+ "variant": "vit_b,random",+ "where": ""+ }+ ],+ "device": "cpu",+ "generated_at": "2026-09-02",+ "kornia": "0.9.0rc1",+ "onnx": "1.21.0",+ "onnxruntime": "1.23.2",+ "onnxscript": "0.5.7",+ "opset": 18,+ "python": "3.11.14",+ "revision": "e0969438",+ "torch": "2.9.1+cu128"+}diff --git a/docs/source/_static/css/pydata.css b/docs/source/_static/css/pydata.cssindex da863109a..997f996cd 100644--- a/docs/source/_static/css/pydata.css+++ b/docs/source/_static/css/pydata.css@@ -68,9 +68,10 @@ html[data-theme="dark"] {rows reserve the same width β the notes line up in one column either way. */.bd-sidebar-primary a.has-sidebar-note {display: flex;+ flex-wrap: wrap; /* a note that no longer fits beside its name drops whole to the next line */align-items: baseline;justify-content: space-between;- gap: 0.75rem;+ gap: 0 0.75rem;}.bd-sidebar-primary li:not(.has-children) > a.has-sidebar-note {@@ -78,11 +79,22 @@ html[data-theme="dark"] {}.bd-sidebar-primary .sidebar-note {+ margin-left: auto; /* stays right-aligned after wrapping */color: var(--pst-color-text-muted);font-size: 0.78em;text-align: right;}+/* The theme gives the primary sidebar a quarter of the viewport, which on a laptop screen leaves+ the article narrower than its own 60em cap while the sidebar shows mostly whitespace. Match the+ right sidebar's width (17rem) instead; the few long entries wrap to two lines. Desktop layout+ only -- below 960px the sidebar is off-canvas and sized by the theme -- and not while collapsed. */+@media (min-width: 960px) {+ .bd-sidebar-primary:not(.pst-squeeze) {+ width: min(17rem, 25%);+ }+}+/* The theme's "Section Navigation" heading adds nothing; the navbar already names the section. */.bd-links__title {display: none;@@ -974,3 +986,253 @@ footer.bd-footer {.kornia-navbar-dropdown__inert {cursor: default;}++/* ONNX / torch.compile / torch.export support page (get-started/export-support, generated). */+.kornia-compat-cards .sd-card-title {+ font-family: var(--pst-font-family-base);+ font-size: 0.95rem;+ font-weight: 600;+}++.kornia-compat-cards .sd-card-text {+ margin: 0;+ font-size: 0.85rem;+ line-height: 1.45;+ color: var(--pst-color-text-muted);+}++.kornia-compat-cards .sd-card-text code,+.kornia-compat-cards .sd-card-text code .pre {+ white-space: normal;+ overflow-wrap: anywhere;+}++.kornia-compat-cards .kornia-compat-count {+ font-size: 1.6rem;+ white-space: nowrap;+ font-weight: 800;+ letter-spacing: -0.02em;+ line-height: 1.1;+ margin-bottom: 0.4rem;+ color: var(--pst-color-primary);+ font-variant-numeric: tabular-nums;+}++/* Status pills; the role names are declared at the top of the generated page. */+.compat-ok,+.compat-ok-breaks,+.compat-ok-random,+.compat-mismatch,+.compat-fail,+.compat-na {+ display: inline-block;+ padding: 0.05rem 0.5rem;+ border-radius: 999px;+ font-size: 0.78rem;+ font-weight: 600;+ line-height: 1.5;+ white-space: nowrap;+ border: 1px solid transparent;+}++.compat-ok {+ color: #166534;+ background: #dcfce7;+ border-color: #bbf7d0;+}++.compat-ok-breaks,+.compat-ok-random {+ color: #3f6212;+ background: #ecfccb;+ border-color: #d9f99d;+}++.compat-mismatch {+ color: #92400e;+ background: #fef3c7;+ border-color: #fde68a;+}++.compat-fail {+ color: #991b1b;+ background: #fee2e2;+ border-color: #fecaca;+}++.compat-na {+ color: var(--pst-color-text-muted);+ background: var(--pst-color-surface);+ border-color: var(--pst-color-border);+}++html[data-theme="dark"] .compat-ok {+ color: #bbf7d0;+ background: rgba(22, 101, 52, 0.35);+ border-color: rgba(74, 222, 128, 0.35);+}++html[data-theme="dark"] .compat-ok-breaks,+html[data-theme="dark"] .compat-ok-random {+ color: #d9f99d;+ background: rgba(63, 98, 18, 0.4);+ border-color: rgba(163, 230, 53, 0.35);+}++html[data-theme="dark"] .compat-mismatch {+ color: #fde68a;+ background: rgba(146, 64, 14, 0.4);+ border-color: rgba(251, 191, 36, 0.35);+}++html[data-theme="dark"] .compat-fail {+ color: #fecaca;+ background: rgba(153, 27, 27, 0.4);+ border-color: rgba(248, 113, 113, 0.35);+}++/* Search box and status filter; ``hidden`` until custom.js wires them up. */+.kornia-compat-controls {+ position: sticky;+ top: var(--pst-header-height, 4rem);+ z-index: 5;+ display: flex;+ flex-wrap: wrap;+ align-items: center;+ gap: 0.75rem 1.25rem;+ margin: 1.25rem 0 1.5rem;+ padding: 0.75rem 1rem;+ border: 1px solid var(--pst-color-border);+ border-radius: 8px;+ background: var(--pst-color-background);+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);+}++.kornia-compat-search {+ flex: 1 1 18rem;+ margin: 0;+}++.kornia-compat-search input {+ width: 100%;+ padding: 0.45rem 0.7rem;+ font: inherit;+ font-size: 0.92rem;+ color: var(--pst-color-text-base);+ background: var(--pst-color-surface);+ border: 1px solid var(--pst-color-border);+ border-radius: 6px;+}++.kornia-compat-search input:focus {+ outline: 2px solid var(--pst-color-primary);+ outline-offset: 1px;+}++.kornia-compat-filter {+ display: inline-flex;+ align-items: center;+ gap: 0.5rem;+ margin: 0;+ font-size: 0.9rem;+ color: var(--pst-color-text-muted);+}++.kornia-compat-filter select {+ padding: 0.4rem 0.5rem;+ font: inherit;+ font-size: 0.9rem;+ color: var(--pst-color-text-base);+ background: var(--pst-color-surface);+ border: 1px solid var(--pst-color-border);+ border-radius: 6px;+}++.kornia-compat-status {+ font-size: 0.85rem;+ color: var(--pst-color-text-muted);+ font-variant-numeric: tabular-nums;+}++/* Dense tables: the operator name is the anchor of every row, the rest can wrap. */+.kornia-compat-table,+.kornia-compat-summary,+.kornia-compat-legend {+ font-size: 0.88rem;+}++.kornia-compat-table td:nth-child(2),+.kornia-compat-table td:nth-child(3),+.kornia-compat-table td:nth-child(4),+.kornia-compat-summary td {+ white-space: nowrap;+}++/* Five columns in the article width: tighter cell padding than the default 1rem (same selector+ weight as the general table rule above; this one comes later). */+.bd-article table.kornia-compat-table th,+.bd-article table.kornia-compat-table td {+ padding: 0.55rem 0.6rem;+}++/* Long operator names wrap onto a second line rather than widening the table: custom.js adds a+ break opportunity (<wbr>) after every "_" and "."; overflow-wrap is the fallback without it.+ basic.css sets span.pre to nowrap, so the span is addressed as well as the code element. */+.kornia-compat-table td:first-child {+ min-width: 9rem;+}++.kornia-compat-table td:first-child code,+.kornia-compat-table td:first-child code span.pre,+.kornia-compat-table td:nth-child(5) code,+.kornia-compat-table td:nth-child(5) code span.pre {+ white-space: normal;+ overflow-wrap: anywhere;+}++.kornia-compat-summary td,+.kornia-compat-summary th {+ font-variant-numeric: tabular-nums;+}++.kornia-compat-table td:first-child code,+.kornia-compat-table td:first-child a {+ font-weight: 600;+}++/* The probed-variant chip goes under the operator name so the column stays as narrow as the longest name. */+.kornia-compat-table td:first-child > p > code + code,+.kornia-compat-table td:first-child > p > a + code {+ display: block;+ width: fit-content;+ margin-top: 0.2rem;+ font-weight: 400;+ color: var(--pst-color-text-muted);+}++.kornia-compat-table td:nth-child(5) {+ overflow-wrap: anywhere;+ min-width: 12rem;+ color: var(--pst-color-text-muted);+ font-size: 0.82rem;+}++.kornia-compat-table td:nth-child(5) strong {+ color: var(--pst-color-text-base);+ font-weight: 600;+}++.kornia-compat-table tr.kornia-compat-hidden,+.kornia-compat-empty {+ display: none;+}++/* Search hit: the query is wrapped in <mark> inside the operator cell. */+.kornia-compat-table mark {+ padding: 0;+ background: transparent;+ color: inherit;+ text-decoration: underline;+ text-decoration-color: var(--pst-color-primary);+ text-decoration-thickness: 2px;+}diff --git a/docs/source/_static/js/custom.js b/docs/source/_static/js/custom.jsindex 5cd35e15a..8f9413216 100644--- a/docs/source/_static/js/custom.js+++ b/docs/source/_static/js/custom.js@@ -350,3 +350,140 @@ document.addEventListener("DOMContentLoaded", function () {}});});+++// Support page (get-started/export-support): a search box and a status filter over the generated+// tables. Rows that match stay visible; a table, its section heading and its package heading are+// hidden once every row in them is filtered out, so the page collapses to the hits. Everything+// works without this script -- the tables are plain HTML -- so the controls start hidden and are+// only revealed once wired up.+document.addEventListener("DOMContentLoaded", function () {+ const controls = document.querySelector(".kornia-compat-controls");+ if (!controls) return;+ const input = controls.querySelector("input[type='search']");+ const select = controls.querySelector("select");+ const status = controls.querySelector(".kornia-compat-status");+ const tables = Array.from(document.querySelectorAll("table.kornia-compat-table"));+ if (!input || !select || !tables.length) return;++ // One record per row: searchable text (operator + configuration), per-column outcome.+ function outcome(cell) {+ const span = cell.querySelector("[class*='compat-']");+ if (!span) return "";+ const cls = Array.from(span.classList).find((c) => c.indexOf("compat-") === 0) || "";+ return cls.slice("compat-".length); // ok | ok-breaks | ok-random | mismatch | fail | na+ }+ // The operator cell is rendered from its plain text: a <wbr> after every "_" and "." lets a long+ // name wrap onto a second line instead of widening the table (a <wbr> is not copied with the+ // text, so a pasted name stays intact), and the search query is wrapped in <mark>.+ function renderName(span, text, re) {+ const marks = [];+ if (re) {+ let m;+ while ((m = re.exec(text)) !== null) {+ if (m[0]) marks.push([m.index, m.index + m[0].length]);+ else re.lastIndex += 1;+ }+ re.lastIndex = 0;+ }+ let html = "";+ let k = 0;+ for (let i = 0; i < text.length; i += 1) {+ if (k < marks.length && i === marks[k][0]) html += "<mark>";+ const ch = text[i];+ html += ch === "&" ? "&" : ch === "<" ? "<" : ch === ">" ? ">" : ch;+ if (k < marks.length && i + 1 === marks[k][1]) { html += "</mark>"; k += 1; }+ if ((ch === "_" || ch === ".") && i + 1 < text.length) html += "<wbr>";+ }+ span.innerHTML = html;+ }++ const rows = [];+ tables.forEach(function (table) {+ table.querySelectorAll("tbody tr").forEach(function (tr) {+ const cells = tr.children;+ const nameCell = cells[0];+ const spans = Array.from(nameCell.querySelectorAll("code .pre")).map((el) => ({ el: el, text: el.textContent }));+ spans.forEach((s) => renderName(s.el, s.text, null));+ rows.push({+ tr: tr,+ table: table,+ spans: spans,+ marked: false,+ text: nameCell.textContent.toLowerCase(),+ onnx: outcome(cells[1]),+ exp: outcome(cells[2]),+ comp: outcome(cells[3]),+ });+ });+ });++ const failing = (o) => o === "fail" || o === "mismatch";+ const passing = (o) => o === "ok" || o === "ok-breaks" || o === "ok-random";+ const PREDICATES = {+ "all": () => true,+ "any-fail": (r) => failing(r.onnx) || failing(r.exp) || failing(r.comp),+ "onnx-fail": (r) => failing(r.onnx),+ "export-fail": (r) => failing(r.exp),+ "compile-fail": (r) => failing(r.comp),+ "compile-breaks": (r) => r.comp === "ok-breaks",+ "all-ok": (r) => passing(r.onnx) && passing(r.exp) && passing(r.comp),+ };++ function escapeRe(s) {+ return s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");+ }++ function apply() {+ const query = input.value.trim().toLowerCase();+ const pred = PREDICATES[select.value] || PREDICATES.all;+ const re = query ? new RegExp(escapeRe(query), "ig") : null;+ let shown = 0;+ const liveTables = new Set();+ rows.forEach(function (r) {+ const hit = pred(r) && (!query || r.text.indexOf(query) !== -1);+ r.tr.classList.toggle("kornia-compat-hidden", !hit);+ // Underline the query inside the operator cell; re-render only rows whose marks change.+ const wantMarks = hit && !!re;+ if (wantMarks || r.marked) {+ r.spans.forEach((s) => renderName(s.el, s.text, wantMarks ? re : null));+ r.marked = wantMarks;+ }+ if (!hit) return;+ shown += 1;+ liveTables.add(r.table);+ });++ // Collapse empty tables, then every section (package or subsection) with no live table left;+ // a package section contains its subsections, so its own tables include theirs.+ tables.forEach(function (t) {+ const box = t.closest(".pst-scrollable-table-container, .table-wrapper") || t;+ box.classList.toggle("kornia-compat-empty", !liveTables.has(t));+ });+ document.querySelectorAll(".bd-article section").forEach(function (s) {+ const own = s.querySelectorAll("table.kornia-compat-table");+ // The page's own section holds the controls: it stays even when nothing matches.+ if (!own.length || s.contains(controls)) return;+ const live = Array.from(own).some((t) => liveTables.has(t));+ s.classList.toggle("kornia-compat-empty", !live);+ });++ const filtered = query || select.value !== "all";+ status.textContent = !filtered ? rows.length + " rows"+ : shown ? "Showing " + shown + " of " + rows.length + " rows"+ : "No operator matches; names are matched as typed (try a shorter fragment)";+ }++ let timer = null;+ input.addEventListener("input", function () {+ clearTimeout(timer);+ timer = setTimeout(apply, 120);+ });+ select.addEventListener("change", apply);+ // "?q=warp" deep-links a search; the hash still scrolls to a package.+ const params = new URLSearchParams(window.location.search);+ if (params.get("q")) input.value = params.get("q");+ if (params.get("show") && PREDICATES[params.get("show")]) select.value = params.get("show");+ controls.hidden = false;+ apply();+});diff --git a/docs/source/conf.py b/docs/source/conf.pyindex 66ce424bd..9eaae35b0 100644--- a/docs/source/conf.py+++ b/docs/source/conf.py@@ -106,6 +106,13 @@ spec.loader.exec_module(generate_adoption)# Pre-generate the adoption page from the committed dependents snapshot_adoption = generate_adoption.main()+spec = importlib.util.spec_from_file_location("generate_export_support", "../generate_export_support.py")+generate_export_support = importlib.util.module_from_spec(spec)+spec.loader.exec_module(generate_export_support)++# Pre-generate the ONNX / torch.compile / torch.export support page from the committed survey snapshot+_export_support = generate_export_support.main()+def _public_operator_count() -> int:"""Public functions and ``nn.Module`` classes defined across kornia's public modules.@@ -154,14 +161,15 @@ def _public_operator_count() -> int:def _landing_page_counts() -> dict[str, str]:- """Figures the landing page quotes, derived from the library rather than typed in.+ """Figures the landing and ONNX pages quote, derived from the library rather than typed in.The public-name counts read the stable-core inventory that ``tests/test_api_surface.py`` pins;``kornia.feature`` and ``kornia.models`` are outside it, so they are counted from the livepackage and from the model pages under ``docs/source/models/``. Each count names exactly themodule the card it appears on links to. ``operators-floor`` is the library-wide total from:func:`_public_operator_count`, floored to the hundred below it so the page can say "1,000+"- and stay true between releases.+ and stay true between releases. The ``onnx-*`` entries come from the export-support survey+ snapshot, counted per operator (supported when at least one probed configuration exports)."""with open("../../tests/api_surface.json", encoding="utf-8") as handle:surface = {name: len(names) for name, names in json.load(handle).items()}@@ -180,10 +188,13 @@ def _landing_page_counts() -> dict[str, str]:"operators-floor": f"{operators // 100 * 100:,}","dependents": f"{_adoption['repositories']:,}","dependent-packages": f"{_adoption['packages']:,}",+ "onnx-operators": str(_export_support["operators"]),+ "onnx-exportable": str(_export_support["onnx_operators"]),+ "onnx-share": f"{round(100 * _export_support['onnx_operators'] / _export_support['operators'])}%",}-# Substitutions such as |count-geometry| and |count-dependents| for the landing page.+# Substitutions such as |count-geometry| and |count-onnx-share| for the landing and ONNX pages.rst_epilog = "\n".join(f".. |count-{key}| replace:: {value}" for key, value in _landing_page_counts().items())# If extensions (or modules to document with autodoc) are in another directory,diff --git a/docs/source/get-started/index.rst b/docs/source/get-started/index.rstindex 376537c2e..01adc379e 100644--- a/docs/source/get-started/index.rst+++ b/docs/source/get-started/index.rst@@ -70,3 +70,4 @@ Looking for a specific function instead? The :doc:`API reference </api>` documen:hidden:Tutorials <https://kornia.github.io/tutorials/>+ ONNX, torch.compile & torch.export support <export-support>diff --git a/docs/source/get-started/onnx.rst b/docs/source/get-started/onnx.rstindex 5a9f35cb3..3aa5d0f31 100644--- a/docs/source/get-started/onnx.rst+++ b/docs/source/get-started/onnx.rst@@ -15,6 +15,11 @@ runs it with ONNX Runtime. It is useful when you have pre-exported operators or- **Execution providers**: run on CPU, CUDA, TensorRT or OpenVINO through ONNX Runtime, with control over thesession options.+Most of the library exports: |count-onnx-share| of Kornia's public operators (|count-onnx-exportable| of the+|count-onnx-operators| surveyed) go through ``torch.onnx.export`` and run under ONNX Runtime. The+:ref:`ONNX, torch.compile and torch.export support <export-support>` page lists the outcome for every operator,+model and augmentation, with the cause of each failure.+Quickstart----------@@ -155,6 +160,10 @@ Use the ``io_maps`` argument to say which output feeds which input.**Can I use custom ONNX Runtime session options?**Yes, pass your own session options to the ``create_session`` method.+**Which operators export?**+The :ref:`ONNX, torch.compile and torch.export support <export-support>` page lists every surveyed operator with+its ONNX export, ``torch.export`` and ``torch.compile`` outcome, searchable by name and filterable by result.+**Where are the pre-exported Kornia operators?**In the `kornia/ONNX_models <https://huggingface.co/kornia/ONNX_models>`_ Hugging Face repository; load them with``"hf://operators/<name>"`` and ``"hf://models/<name>"`` or with :class:`~kornia.onnx.utils.ONNXLoader`.diff --git a/kornia/augmentation/_2d/geometric/crop.py b/kornia/augmentation/_2d/geometric/crop.pyindex af88cfa5d..5d9f6833d 100644--- a/kornia/augmentation/_2d/geometric/crop.py+++ b/kornia/augmentation/_2d/geometric/crop.py@@ -23,6 +23,7 @@ import torch.nn.functional as Ffrom kornia.augmentation import random_generator as rgfrom kornia.augmentation._2d.geometric.base import GeometricAugmentationBase2Dfrom kornia.constants import Resample+from kornia.core.utils import is_exportingfrom kornia.geometry.boxes import Boxesfrom kornia.geometry.keypoints import Keypointsfrom kornia.geometry.transform import crop_by_indices, crop_by_transform_mat, get_perspective_transform@@ -212,7 +213,11 @@ class RandomCrop(GeometricAugmentationBase2D):transform: Optional[torch.Tensor] = None,) -> torch.Tensor:padding_size: Optional[List[int]] = None- if "padding_size" in params and isinstance(params["padding_size"], torch.Tensor):+ if is_exporting():+ # ``padding_size`` is a function of the input shape (see ``forward_parameters``), so let+ # ``precrop_padding`` recompute it from the static shape instead of reading the tensor back.+ padding_size = None+ elif "padding_size" in params and isinstance(params["padding_size"], torch.Tensor):padding_size = params["padding_size"].unique(dim=0).cpu().squeeze().tolist()input = self.precrop_padding(input, padding_size, flags)diff --git a/kornia/augmentation/_2d/geometric/resize.py b/kornia/augmentation/_2d/geometric/resize.pyindex 932bebd05..b19d3338a 100644--- a/kornia/augmentation/_2d/geometric/resize.py+++ b/kornia/augmentation/_2d/geometric/resize.py@@ -22,7 +22,9 @@ import torchfrom kornia.augmentation import random_generator as rgfrom kornia.augmentation._2d.geometric.base import GeometricAugmentationBase2Dfrom kornia.constants import Resample+from kornia.core.utils import is_exportingfrom kornia.geometry.transform import crop_by_transform_mat, get_perspective_transform, resize+from kornia.geometry.transform.affwarp import _side_to_image_sizeclass Resize(GeometricAugmentationBase2D):@@ -93,6 +95,10 @@ class Resize(GeometricAugmentationBase2D):# data-dependent `output_size` param).if isinstance(flags["size"], (tuple, list)):out_size: Tuple[int, int] = (int(flags["size"][0]), int(flags["size"][1]))+ elif is_exporting():+ # `output_size` is a function of the (static) input shape; recompute it rather than read the tensor.+ h, w = input.shape[-2:]+ out_size = _side_to_image_size(int(flags["size"]), w / h, flags["side"])else:out_size = tuple(params["output_size"][0].tolist())return resize(diff --git a/kornia/augmentation/_2d/intensity/planckian_jitter.py b/kornia/augmentation/_2d/intensity/planckian_jitter.pyindex 16c178d79..c6036bff1 100644--- a/kornia/augmentation/_2d/intensity/planckian_jitter.py+++ b/kornia/augmentation/_2d/intensity/planckian_jitter.py@@ -191,10 +191,10 @@ class RandomPlanckianJitter(IntensityAugmentationBase2D):flags: Dict[str, Any],transform: Optional[torch.Tensor] = None,) -> torch.Tensor:- list_idx = params["idx"].tolist()KORNIA_CHECK_SHAPE(input, ["*", "3", "H", "W"])- self.pl = self.pl.to(device=input.device)- coeffs = self.pl[list_idx]+ # Index with the tensor itself: `.tolist()` reads the data, which graph capture cannot do. The buffer+ # follows the module's device, so it is not re-assigned here.+ coeffs = self.pl.to(device=input.device)[params["idx"].long()]r_w = coeffs[:, 0][..., None, None]b_w = coeffs[:, 1][..., None, None]diff --git a/kornia/augmentation/_3d/intensity/motion_blur.py b/kornia/augmentation/_3d/intensity/motion_blur.pyindex a34c160f4..2bea1cf62 100644--- a/kornia/augmentation/_3d/intensity/motion_blur.py+++ b/kornia/augmentation/_3d/intensity/motion_blur.py@@ -112,6 +112,7 @@ class RandomMotionBlur3D(IntensityAugmentationBase3D):super().__init__(p=p, same_on_batch=same_on_batch, p_batch=1.0, keepdim=keepdim)self.flags = {"border_type": BorderType.get(border_type), "resample": Resample.get(resample)}self._param_generator = rg.MotionBlurGenerator3D(kernel_size, angle, direction)+ self._fixed_kernel_size: Optional[int] = kernel_size if isinstance(kernel_size, int) else Nonedef compute_transformation(self, input: torch.Tensor, params: Dict[str, torch.Tensor], flags: Dict[str, Any]@@ -125,7 +126,12 @@ class RandomMotionBlur3D(IntensityAugmentationBase3D):flags: Dict[str, Any],transform: Optional[torch.Tensor] = None,) -> torch.Tensor:- kernel_size = int(params["ksize_factor"].unique().item())+ kernel_size: int+ if self._fixed_kernel_size is not None:+ # Fixed kernel size: static value, no device-to-host read -> stays capturable by graph export.+ kernel_size = self._fixed_kernel_size+ else:+ kernel_size = int(params["ksize_factor"].unique().item())angle = params["angle_factor"]direction = params["direction_factor"]return motion_blur3d(diff --git a/kornia/augmentation/random_generator/_2d/crop.py b/kornia/augmentation/random_generator/_2d/crop.pyindex c23ba5e15..aac0aa311 100644--- a/kornia/augmentation/random_generator/_2d/crop.py+++ b/kornia/augmentation/random_generator/_2d/crop.py@@ -256,7 +256,9 @@ class ResizedCropGenerator(CropGenerator):# torch.argmax is not reproducible across devices: https://github.com/pytorch/pytorch/issues/17738# Here, we will select the first occurrence of the duplicated elements.- cond_bool, argmax_dim1 = ((cond.cumsum(1) == 1) & cond.bool()).max(1)+ # ``max`` over an integer (not bool) tensor: ONNX ``ReduceMax`` has no bool overload.+ cond_bool, argmax_dim1 = ((cond.cumsum(1) == 1) & cond.bool()).int().max(1)+ cond_bool = cond_bool.bool()h_out = h[torch.arange(0, batch_size, device=_device, dtype=torch.long), argmax_dim1]w_out = w[torch.arange(0, batch_size, device=_device, dtype=torch.long), argmax_dim1]diff --git a/kornia/augmentation/random_generator/_3d/crop.py b/kornia/augmentation/random_generator/_3d/crop.pyindex e5d767eb4..9fc37d68e 100644--- a/kornia/augmentation/random_generator/_3d/crop.py+++ b/kornia/augmentation/random_generator/_3d/crop.py@@ -22,7 +22,7 @@ from torch.distributions import Uniformfrom kornia.augmentation.random_generator.base import RandomGeneratorBasefrom kornia.augmentation.utils import _adapted_rsampling, _check_positive_int_or_traced, _common_param_check-from kornia.core.utils import _extract_device_dtype+from kornia.core.utils import _extract_device_dtype, is_exportingfrom kornia.geometry.bbox import bbox_generator3d@@ -92,7 +92,8 @@ class CropGenerator3D(RandomGeneratorBase):y_diff = height - size[:, 1] + 1z_diff = depth - size[:, 0] + 1- if (x_diff < 0).any() or (y_diff < 0).any() or (z_diff < 0).any():+ # The size check reads the data, which graph capture cannot do; skip it under export.+ if not is_exporting() and ((x_diff < 0).any() or (y_diff < 0).any() or (z_diff < 0).any()):raise ValueError(f"input_size {(depth, height, width)} cannot be smaller than crop size {size!s} in any dimension.")diff --git a/kornia/contrib/distance_transform.py b/kornia/contrib/distance_transform.pyindex c9fc97aec..d190ae989 100644--- a/kornia/contrib/distance_transform.py+++ b/kornia/contrib/distance_transform.py@@ -36,7 +36,8 @@ def _distance_transform_2d_impl(image: torch.Tensor, kernel_size: int, h: float)grid = create_meshgrid(kernel_size, kernel_size, False, device, dtype)grid = grid - k_half- dist = torch.hypot(grid[0, ..., 0], grid[0, ..., 1])+ # `torch.hypot` has no ONNX lowering; the grid offsets are small integers, so the plain form is exact enough.+ dist = torch.sqrt(grid[0, ..., 0] ** 2 + grid[0, ..., 1] ** 2)kernel = torch.exp(-dist / h).unsqueeze(0)out = torch.zeros_like(image)diff --git a/kornia/contrib/object_detection.py b/kornia/contrib/object_detection.pyindex 9a5f3dda1..a79aa60bd 100644--- a/kornia/contrib/object_detection.py+++ b/kornia/contrib/object_detection.py@@ -349,14 +349,16 @@ class BoxFiltering(nn.Module, ONNXExportMixin):"""# Apply confidence filtering- zero_tensor = torch.tensor(0.0, device=boxes.device, dtype=boxes.dtype)- confidence_threshold = (- confidence_threshold or self.confidence_threshold or zero_tensor- ) # If None, use 0 as threshold+ # Explicit `None` tests: `x or y` would read a tensor's truth value, which graph capture cannot do.+ if confidence_threshold is None:+ confidence_threshold = self.confidence_threshold+ if confidence_threshold is None:+ confidence_threshold = torch.tensor(0.0, device=boxes.device, dtype=boxes.dtype) # use 0 as thresholdconfidence_mask = boxes[:, :, 1] > confidence_threshold # [B, D]# Apply class filtering- classes_to_keep = classes_to_keep or self.classes_to_keep+ if classes_to_keep is None:+ classes_to_keep = self.classes_to_keepif classes_to_keep is not None:class_ids = boxes[:, :, 0:1] # [B, D, 1]classes_to_keep = classes_to_keep.view(1, 1, -1) # [1, 1, C] for broadcastingdiff --git a/kornia/core/utils.py b/kornia/core/utils.pyindex 5b1c63782..3191085ae 100644--- a/kornia/core/utils.py+++ b/kornia/core/utils.py@@ -179,7 +179,7 @@ def _inverse_3x3_closed_form(input: torch.Tensor) -> torch.Tensor:well-conditioned matrices; behavior on singular matrices is undefined(no explicit check, same as ``torch.linalg.inv`` itself)."""- if not torch.jit.is_tracing():+ if not _is_tracing_or_exporting():# inv(M) = adj(M) / det, and for a 3x3 the adjugate rows are cross products of the# columns: with columns (a, b, c), the inverse rows are (b x c, c x a, a x b) / det,# det = a . (b x c). Three fused ``cross`` ops instead of nine scalar cofactor@@ -193,8 +193,36 @@ def _inverse_3x3_closed_form(input: torch.Tensor) -> torch.Tensor:det = (col_a * row0).sum(-1)return torch.stack([row0, row1, row2], dim=-2) / det[..., None, None]- # Under tracing (legacy ONNX / jit.trace) stick to the plain scalar adjugate: it lowers to- # basic arithmetic that every opset supports, whereas ``cross`` may not.+ # Under tracing/export (legacy ONNX / jit.trace / dynamo ONNX) stick to the plain scalar+ # adjugate: it lowers to basic arithmetic that every opset supports, whereas ``cross`` may not.+ adj, det = _adjugate_3x3(input)+ return adj / det[..., None, None]+++def _is_tracing_or_exporting() -> bool:+ """Whether a graph is being captured by ``torch.jit.trace`` or ``torch.export``/dynamo ONNX export.++ Both capture modes lack ONNX lowerings for the ``linalg`` decompositions (``inv``, ``inv_ex``,+ ``lu_factor``), so callers switch to closed-form arithmetic. Always ``False`` under TorchScript.+ """+ if torch.jit.is_scripting():+ return False+ return torch.jit.is_tracing() or is_exporting()+++def _adjugate_2x2(input: torch.Tensor) -> Tuple[torch.Tensor, torch.Tensor]:+ """Return the adjugate and determinant of batched 2x2 matrices, in basic arithmetic only."""+ a = input[..., 0, 0]+ b = input[..., 0, 1]+ c = input[..., 1, 0]+ d = input[..., 1, 1]+ det = a * d - b * c+ adj = torch.stack([torch.stack([d, -b], dim=-1), torch.stack([-c, a], dim=-1)], dim=-2)+ return adj, det+++def _adjugate_3x3(input: torch.Tensor) -> Tuple[torch.Tensor, torch.Tensor]:+ """Return the adjugate and determinant of batched 3x3 matrices, in basic arithmetic only."""a = input[..., 0, 0]b = input[..., 0, 1]c = input[..., 0, 2]@@ -224,7 +252,88 @@ def _inverse_3x3_closed_form(input: torch.Tensor) -> torch.Tensor:row2 = torch.stack([c02, c12, c22], dim=-1)adj = torch.stack([row0, row1, row2], dim=-2)- return adj / det[..., None, None]+ return adj, det+++def _adjugate_4x4(input: torch.Tensor) -> Tuple[torch.Tensor, torch.Tensor]:+ """Return the adjugate and determinant of batched 4x4 matrices, in basic arithmetic only.++ Laplace expansion over the 2x2 minors of the top two rows (``s``) and bottom two rows (``c``),+ the standard 4x4 cofactor scheme (e.g. MESA ``gluInvertMatrix``).+ """+ a = input[..., 0, 0]+ b = input[..., 0, 1]+ c = input[..., 0, 2]+ d = input[..., 0, 3]+ e = input[..., 1, 0]+ f = input[..., 1, 1]+ g = input[..., 1, 2]+ h = input[..., 1, 3]+ i = input[..., 2, 0]+ j = input[..., 2, 1]+ k = input[..., 2, 2]+ l_ = input[..., 2, 3]+ m = input[..., 3, 0]+ n = input[..., 3, 1]+ o = input[..., 3, 2]+ p = input[..., 3, 3]++ s0 = a * f - b * e+ s1 = a * g - c * e+ s2 = a * h - d * e+ s3 = b * g - c * f+ s4 = b * h - d * f+ s5 = c * h - d * g++ c5 = k * p - l_ * o+ c4 = j * p - l_ * n+ c3 = j * o - k * n+ c2 = i * p - l_ * m+ c1 = i * o - k * m+ c0 = i * n - j * m++ det = s0 * c5 - s1 * c4 + s2 * c3 + s3 * c2 - s4 * c1 + s5 * c0++ row0 = torch.stack(+ [f * c5 - g * c4 + h * c3, -b * c5 + c * c4 - d * c3, n * s5 - o * s4 + p * s3, -j * s5 + k * s4 - l_ * s3],+ dim=-1,+ )+ row1 = torch.stack(+ [-e * c5 + g * c2 - h * c1, a * c5 - c * c2 + d * c1, -m * s5 + o * s2 - p * s1, i * s5 - k * s2 + l_ * s1],+ dim=-1,+ )+ row2 = torch.stack(+ [e * c4 - f * c2 + h * c0, -a * c4 + b * c2 - d * c0, m * s4 - n * s2 + p * s0, -i * s4 + j * s2 - l_ * s0],+ dim=-1,+ )+ row3 = torch.stack(+ [-e * c3 + f * c1 - g * c0, a * c3 - b * c1 + c * c0, -m * s3 + n * s1 - o * s0, i * s3 - j * s1 + k * s0],+ dim=-1,+ )+ adj = torch.stack([row0, row1, row2, row3], dim=-2)++ return adj, det+++def _adjugate_closed_form(input: torch.Tensor) -> Tuple[torch.Tensor, torch.Tensor]:+ """Adjugate and determinant of batched square matrices up to 4x4 in basic arithmetic only.++ Raises:+ NotImplementedError: for shapes other than ``(..., n, n)`` with ``n`` in 2, 3, 4.+ """+ n = input.shape[-1]+ if input.shape[-2] == n and n == 2:+ return _adjugate_2x2(input)+ if input.shape[-2] == n and n == 3:+ return _adjugate_3x3(input)+ if input.shape[-2] == n and n == 4:+ return _adjugate_4x4(input)+ raise NotImplementedError(f"Closed-form inverse only supports 2x2, 3x3 and 4x4 matrices, got {list(input.shape)}")+++def _has_closed_form_inverse(input: torch.Tensor) -> bool:+ n = input.shape[-1]+ return input.shape[-2] == n and n in (2, 3, 4)def _torch_inverse_cast(input: torch.Tensor) -> torch.Tensor:@@ -233,16 +342,18 @@ def _torch_inverse_cast(input: torch.Tensor) -> torch.Tensor:The function torch.inverse is only implemented for fp32/64 which makes impossible to be used by fp16 or others. Whatthis function does, is cast input data type to fp32, apply torch.inverse, and cast back to the input dtype.- During tracing (``torch.jit.trace`` and legacy ``torch.onnx.export``) on 3x3- matrices, falls back to a closed-form inverse so the resulting graph does not- include ``aten::linalg_inv`` (unsupported by the legacy ONNX exporter at- opset 20). ``torch.jit.is_tracing()`` is JIT-script-safe (unlike- ``torch.onnx.is_in_onnx_export``, which contains an ``import`` statement).+ Under graph capture (``torch.jit.trace``, legacy ``torch.onnx.export`` and the dynamo+ ``torch.onnx.export(..., dynamo=True)`` / ``torch.export`` path) on 2x2, 3x3 and 4x4+ matrices, falls back to a closed-form adjugate inverse so the resulting graph does not+ include ``aten::linalg_inv``, which neither ONNX exporter lowers. ``torch.jit.is_tracing()``+ is JIT-script-safe (unlike ``torch.onnx.is_in_onnx_export``, which contains an ``import``+ statement)."""KORNIA_CHECK_IS_TENSOR(input, "Input must be torch.Tensor")dtype = _normalize_to_float32_or_float64(input.dtype)- if torch.jit.is_tracing() and input.shape[-2:] == (3, 3):- return _inverse_3x3_closed_form(input.to(dtype)).to(input.dtype)+ if _is_tracing_or_exporting() and _has_closed_form_inverse(input):+ adj, det = _adjugate_closed_form(input.to(dtype))+ return (adj / det[..., None, None]).to(input.dtype)return torch.linalg.inv(input.to(dtype)).to(input.dtype)@@ -355,6 +466,14 @@ def safe_inverse_with_mask(A: torch.Tensor) -> Tuple[torch.Tensor, torch.Tensor]dtype_original = A.dtypedtype = _normalize_to_float32_or_float64(dtype_original)+ if _is_tracing_or_exporting() and _has_closed_form_inverse(A):+ # ``linalg_inv_ex`` has no ONNX lowering; the adjugate form is basic arithmetic, and a+ # zero determinant is exactly the singularity ``inv_ex`` flags through ``info``.+ adj, det = _adjugate_closed_form(A.to(dtype))+ mask = det != 0+ safe_det = torch.where(mask, det, torch.ones_like(det))+ return (adj / safe_det[..., None, None]).to(dtype_original), mask+inverse, info = inv_ex(A.to(dtype))mask = info == 0return inverse.to(dtype_original), mask@@ -397,14 +516,51 @@ def is_compiling() -> bool:return bool(_torch_is_compiling()) if _torch_is_compiling is not None else False-def is_exporting() -> bool:- """Whether execution is inside a ``torch.export`` capture.+def _is_exporting_eager() -> bool:+ if _torch_is_exporting is not None:+ return bool(_torch_is_exporting())+ # torch < 2.6 has no export flag. Inside a Dynamo trace the newer releases constant-fold+ # ``torch.compiler.is_exporting`` to ``True`` for ``torch.compile`` as well as for+ # ``torch.export``, so ``is_compiling`` is the fallback with the same semantics.+ return is_compiling()+- Used to skip in-``forward`` side effects (e.g. stashing per-call state on ``self``) that- ``torch.export`` on torch <= 2.9 rejects, without changing the captured output. Returns- ``False`` on torch versions where ``torch.compiler.is_exporting`` is unavailable.+def is_exporting() -> bool:+ """Whether execution is inside a graph capture by ``torch.export`` or the dynamo ONNX exporter.++ Used to switch to export-safe arithmetic (closed-form inverses, ``sort``-based medians, ...) and+ to skip in-``forward`` side effects (e.g. stashing per-call state on ``self``) that+ ``torch.export`` rejects, without changing the captured output. Inside a Dynamo trace torch+ folds its own flag to ``True`` for ``torch.compile`` too, so the export-safe paths are also+ what a compiled graph contains; on torch < 2.6, which has no export flag, ``is_compiling`` is+ used for the same reason. Always ``False`` inside TorchScript, so the guard is safe to call+ from scripted functions.+ """+ if torch.jit.is_scripting():+ return False+ return _is_exporting_eager()+++def register_module_state(module: torch.nn.Module, name: str, x: torch.Tensor) -> None:+ """Store tensor ``x`` on ``module`` as ``name`` so it is optimizable, movable and serializable.++ A leaf tensor (user-provided data or an existing parameter) becomes an ``nn.Parameter``, as+ before. ``nn.Parameter(x)`` would re-root a tensor that already carries a ``grad_fn`` as a new+ leaf, so a group built from ``Se3.exp(v)`` would stop propagating gradients to ``v``; such a+ tensor is registered as a buffer instead, which keeps its history while ``.to()``,+ ``state_dict()`` and ``load_state_dict()`` still reach it under the same key. Under graph+ capture (``torch.jit.trace``, ``torch.compile``, ``torch.export`` and the dynamo ONNX+ exporter) neither a parameter nor a buffer can be created inside the traced region, so the+ tensor is kept as a plain attribute of the module being built."""- return bool(_torch_is_exporting()) if _torch_is_exporting is not None else False+ if isinstance(x, torch.nn.Parameter) or not (torch.jit.is_tracing() or is_compiling() or is_exporting()):+ if x.grad_fn is None or isinstance(x, torch.nn.Parameter):+ x = x if isinstance(x, torch.nn.Parameter) else torch.nn.Parameter(x)+ else:+ module.register_buffer(name, x)+ return+ setattr(module, name, x)def dataclass_to_dict(obj: Any) -> Any:diff --git a/kornia/enhance/jpeg.py b/kornia/enhance/jpeg.pyindex a4a5eb185..e596257ed 100644--- a/kornia/enhance/jpeg.py+++ b/kornia/enhance/jpeg.py@@ -31,6 +31,7 @@ from kornia.core.check import (KORNIA_CHECK_IS_TENSOR,KORNIA_CHECK_SHAPE,)+from kornia.core.utils import is_exportingfrom kornia.geometry.transform.affwarp import rescalefrom kornia.image.utils import perform_keep_shape_image@@ -87,11 +88,15 @@ def _differentiable_clipping(Clipped output tensor of the same shape as the input tensor."""- output: torch.Tensor = input.clone()+ # Branch-free ``torch.where`` selects instead of boolean-mask assignment, so the op traces for+ # export. The exponent is clamped on the lanes that keep ``output`` so they cannot overflow.+ output: torch.Tensor = inputif max_val is not None:- output[output > max_val] = -scale * (torch.exp(-output[output > max_val] + max_val) - 1.0) + max_val+ over = output - max_val+ output = torch.where(over > 0, -scale * (torch.exp(-over.clamp(min=0)) - 1.0) + max_val, output)if min_val is not None:- output[output < min_val] = scale * (torch.exp(output[output < min_val] - min_val) - 1.0) + min_val+ under = output - min_val+ output = torch.where(under < 0, scale * (torch.exp(under.clamp(max=0)) - 1.0) + min_val, output)return output@@ -576,12 +581,13 @@ def jpeg_codec_differentiable(# Check resulting shape of quantization tablesKORNIA_CHECK_SHAPE(quantization_table_y, ["B", "8", "8"])KORNIA_CHECK_SHAPE(quantization_table_c, ["B", "8", "8"])- # Check value range of JPEG quality- KORNIA_CHECK(- (jpeg_quality.amin().item() >= 0.0) and (jpeg_quality.amax().item() <= 100.0),- f"JPEG quality is out of range. Expected range is [0, 100], "- f"got [{jpeg_quality.amin().item()}, {jpeg_quality.amax().item()}]. Consider clipping jpeg_quality.",- )+ # Check value range of JPEG quality. The check reads the data, which graph capture cannot do; skip under export.+ if not is_exporting():+ KORNIA_CHECK(+ (jpeg_quality.amin().item() >= 0.0) and (jpeg_quality.amax().item() <= 100.0),+ f"JPEG quality is out of range. Expected range is [0, 100], "+ f"got [{jpeg_quality.amin().item()}, {jpeg_quality.amax().item()}]. Consider clipping jpeg_quality.",+ )# Pad the image to a shape dividable by 16input, h_pad, w_pad = _perform_padding(input)# Get height and shapediff --git a/kornia/enhance/normalize.py b/kornia/enhance/normalize.pyindex 3e701c9df..74068d576 100644--- a/kornia/enhance/normalize.py+++ b/kornia/enhance/normalize.py@@ -137,6 +137,11 @@ def normalize(data: torch.Tensor, mean: torch.Tensor, std: torch.Tensor) -> torcif torch.onnx.is_in_onnx_export():if not isinstance(mean, torch.Tensor) or not isinstance(std, torch.Tensor):raise ValueError("Only torch.Tensor is accepted when converting to ONNX.")+ # A per-channel vector broadcasts the same way as its (1, C) view; accept it instead of raising.+ if mean.dim() == 1:+ mean = mean.view(1, -1)+ if std.dim() == 1:+ std = std.view(1, -1)if mean.shape[0] != 1 or std.shape[0] != 1:raise ValueError("Batch dimension must be one for broadcasting when converting to ONNX."@@ -263,6 +268,11 @@ def denormalize(data: torch.Tensor, mean: Union[torch.Tensor, float], std: Unionif torch.onnx.is_in_onnx_export():if not isinstance(mean, torch.Tensor) or not isinstance(std, torch.Tensor):raise ValueError("Only torch.Tensor is accepted when converting to ONNX.")+ # A per-channel vector broadcasts the same way as its (1, C) view; accept it instead of raising.+ if mean.dim() == 1:+ mean = mean.view(1, -1)+ if std.dim() == 1:+ std = std.view(1, -1)if mean.shape[0] != 1 or std.shape[0] != 1:raise ValueError("Batch dimension must be one for broadcasting when converting to ONNX.")else:diff --git a/kornia/enhance/zca.py b/kornia/enhance/zca.pyindex 3bbf50bab..88641e68a 100644--- a/kornia/enhance/zca.py+++ b/kornia/enhance/zca.py@@ -237,15 +237,17 @@ def zca_mean(if dim < 0:dim = len(inp_size) + dim- feat_dims = torch.cat([torch.arange(0, dim), torch.arange(dim + 1, len(inp_size))])-- new_order: List[int] = torch.cat([torch.tensor([dim]), feat_dims]).tolist()+ # Plain Python index arithmetic: tensor round-trips here would read data under graph capture.+ new_order: List[int] = [dim]+ num_features: int = 1+ for i in range(len(inp_size)):+ if i != dim:+ new_order.append(i)+ num_features *= inp_size[i]inp_permute = inp.permute(new_order)N = inp_size[dim]- feature_sizes = torch.tensor(inp_size[0:dim] + inp_size[dim + 1 : :])- num_features: int = int(torch.prod(feature_sizes).item())mean: torch.Tensor = torch.mean(inp_permute, dim=0, keepdim=True)@@ -372,16 +374,16 @@ def linear_transform(if dim < 0:dim = len(inp_size) + dim- feat_dims = torch.cat([torch.arange(0, dim), torch.arange(dim + 1, len(inp_size))])-- perm = torch.cat([torch.tensor([dim]), feat_dims])- perm_inv = torch.argsort(perm)-- new_order: List[int] = perm.tolist()- inv_order: List[int] = perm_inv.tolist()-- feature_sizes = torch.tensor(inp_size[0:dim] + inp_size[dim + 1 : :])- num_features: int = int(torch.prod(feature_sizes).item())+ # Plain Python index arithmetic: tensor round-trips here would read data under graph capture.+ new_order: List[int] = [dim]+ num_features: int = 1+ for i in range(len(inp_size)):+ if i != dim:+ new_order.append(i)+ num_features *= inp_size[i]+ inv_order: List[int] = [0 for _ in new_order]+ for i in range(len(new_order)):+ inv_order[new_order[i]] = iinp_permute = inp.permute(new_order)inp_flat = inp_permute.reshape((-1, num_features))diff --git a/kornia/feature/affine_shape.py b/kornia/feature/affine_shape.pyindex f0b1f4c0a..cd090f8c5 100644--- a/kornia/feature/affine_shape.py+++ b/kornia/feature/affine_shape.py@@ -286,7 +286,9 @@ class LAFAffNetShapeEstimator(nn.Module):@staticmethoddef _normalize_input(x: torch.Tensor, eps: float = 1e-6) -> torch.Tensor:"""Normalize the input by batch."""- sp, mp = torch.std_mean(x, dim=(-3, -2, -1), keepdim=True)+ # `torch.std_mean` decomposes to `prims.sum`, which has no ONNX lowering; the split form is equivalent.+ mp = torch.mean(x, dim=(-3, -2, -1), keepdim=True)+ sp = torch.std(x, dim=(-3, -2, -1), keepdim=True)# WARNING: we need to .detach() input, otherwise the gradients produced by# the patches extractor with F.grid_sample are very noisy, making the detector# training totally unstable.diff --git a/kornia/feature/hardnet.py b/kornia/feature/hardnet.pyindex 8fdefee27..29508044a 100644--- a/kornia/feature/hardnet.py+++ b/kornia/feature/hardnet.py@@ -22,7 +22,7 @@ from torch import nnfrom kornia.core.check import KORNIA_CHECK_SHAPEfrom kornia.core.download import hf_url, load_state_dict_from_url-from kornia.core.utils import _l2_normalize, is_mps_tensor_safe+from kornia.core.utils import _is_tracing_or_exporting, _l2_normalize, is_mps_tensor_safeurls: Dict[str, str | list[str]] = {}urls["hardnet++"] = [@@ -99,11 +99,12 @@ class HardNet(nn.Module):@staticmethoddef _normalize_input(x: torch.Tensor, eps: float = 1e-6) -> torch.Tensor:"""Normalize the input by batch."""- if not is_mps_tensor_safe(x):- sp, mp = torch.std_mean(x, dim=(-3, -2, -1), keepdim=True)- else:+ if is_mps_tensor_safe(x) or _is_tracing_or_exporting():+ # `torch.std_mean` is unsupported on MPS and decomposes to `prims.sum`, which has no ONNX lowering.mp = torch.mean(x, dim=(-3, -2, -1), keepdim=True)sp = torch.std(x, dim=(-3, -2, -1), keepdim=True)+ else:+ sp, mp = torch.std_mean(x, dim=(-3, -2, -1), keepdim=True)# WARNING: we need to .detach() input, otherwise the gradients produced by# the patches extractor with F.grid_sample are very noisy, making the detector# training totally unstable.@@ -205,11 +206,12 @@ class HardNet8(nn.Module):@staticmethoddef _normalize_input(x: torch.Tensor, eps: float = 1e-7) -> torch.Tensor:"""Normalize the input by batch."""- if not is_mps_tensor_safe(x):- sp, mp = torch.std_mean(x, dim=(-3, -2, -1), keepdim=True)- else:+ if is_mps_tensor_safe(x) or _is_tracing_or_exporting():+ # `torch.std_mean` is unsupported on MPS and decomposes to `prims.sum`, which has no ONNX lowering.mp = torch.mean(x, dim=(-3, -2, -1), keepdim=True)sp = torch.std(x, dim=(-3, -2, -1), keepdim=True)+ else:+ sp, mp = torch.std_mean(x, dim=(-3, -2, -1), keepdim=True)# WARNING: we need to .detach() input, otherwise the gradients produced by# the patches extractor with F.grid_sample are very noisy, making the detector# training totally unstable.diff --git a/kornia/feature/integrated.py b/kornia/feature/integrated.pyindex cb5c69031..256318896 100644--- a/kornia/feature/integrated.py+++ b/kornia/feature/integrated.py@@ -24,6 +24,7 @@ from torch import nnfrom kornia.color import rgb_to_grayscalefrom kornia.constants import pifrom kornia.core.check import KORNIA_CHECK, KORNIA_CHECK_LAF+from kornia.core.utils import is_exportingfrom kornia.geometry.subpix import ConvQuadInterp3dfrom kornia.geometry.transform import ScalePyramid@@ -66,7 +67,9 @@ def get_laf_descriptors("""KORNIA_CHECK_LAF(lafs)- patch_descriptor = patch_descriptor.to(img)+ # Moving a module swaps its parameters, which graph capture forbids; the module is already placed under export.+ if not is_exporting():+ patch_descriptor = patch_descriptor.to(img)patch_descriptor.eval()timg: torch.Tensor = imgdiff --git a/kornia/feature/laf.py b/kornia/feature/laf.pyindex f899aa85d..8ba51f5ca 100644--- a/kornia/feature/laf.py+++ b/kornia/feature/laf.py@@ -861,7 +861,8 @@ def laf_is_inside_image(laf: torch.Tensor, images: torch.Tensor, border: int = 0x_max = float(w - 1) - bordery_max = float(h - 1) - bordergood_lafs_mask = (pts[..., 0] >= border) * (pts[..., 0] <= x_max) * (pts[..., 1] >= border) * (pts[..., 1] <= y_max)- good_lafs_mask = good_lafs_mask.min(dim=2)[0]+ # `.all` rather than `.min` on the bool mask: ONNX ReduceMin has no bool overload.+ good_lafs_mask = good_lafs_mask.all(dim=2)return good_lafs_maskdiff --git a/kornia/feature/lightglue.py b/kornia/feature/lightglue.pyindex cf5aed76b..c1233d4c3 100644--- a/kornia/feature/lightglue.py+++ b/kornia/feature/lightglue.py@@ -27,6 +27,7 @@ from torch import nnfrom kornia.core.check import KORNIA_CHECKfrom kornia.core.download import hf_url, load_state_dict_from_url+from kornia.core.utils import is_exportingfrom kornia.feature.laf import laf_to_three_points, scale_laftry:@@ -477,6 +478,12 @@ def filter_matches(scores: torch.Tensor, th: float) -> Tuple[torch.Tensor, torchreturn m0, m1, mscores0, mscores1+def _check_keypoints_normalized(kpts: torch.Tensor) -> None:+ """Check that keypoints lie in [-1, 1]; skipped under export, where reading the data is not possible."""+ if not is_exporting():+ KORNIA_CHECK(torch.all(kpts >= -1).item() and torch.all(kpts <= 1).item(), "") # type: ignore++class LightGlue(nn.Module):"""Implement the LightGlue matcher for sparse local features.@@ -732,8 +739,8 @@ class LightGlue(nn.Module):kpts0 = normalize_keypoints(kpts0, size0).clone()kpts1 = normalize_keypoints(kpts1, size1).clone()- KORNIA_CHECK(torch.all(kpts0 >= -1).item() and torch.all(kpts0 <= 1).item(), "") # type: ignore- KORNIA_CHECK(torch.all(kpts1 >= -1).item() and torch.all(kpts1 <= 1).item(), "") # type: ignore+ _check_keypoints_normalized(kpts0)+ _check_keypoints_normalized(kpts1)if self.conf.add_scale_ori:kpts0 = torch.cat([kpts0] + [data0[k].unsqueeze(-1) for k in ("scales", "oris")], -1)if self.conf.scale_coef != 1.0:diff --git a/kornia/feature/matching.py b/kornia/feature/matching.pyindex 4db26af7f..60e6cb83b 100644--- a/kornia/feature/matching.py+++ b/kornia/feature/matching.py@@ -21,7 +21,7 @@ import torchfrom torch import nnfrom kornia.core.check import KORNIA_CHECK_DM_DESC, KORNIA_CHECK_SHAPE-from kornia.core.utils import _l2_normalize, is_mps_tensor_safe+from kornia.core.utils import _l2_normalize, is_exporting, is_mps_tensor_safefrom kornia.feature.laf import get_laf_centerfrom kornia.feature.steerers import DiscreteSteerer@@ -37,7 +37,13 @@ def _cdist(d1: torch.Tensor, d2: torch.Tensor) -> torch.Tensor:on CUDA and may be unavailable for these dtypes elsewhere."""half = (torch.float16, torch.bfloat16)- if (not is_mps_tensor_safe(d1)) and (not is_mps_tensor_safe(d2)) and d1.dtype not in half and d2.dtype not in half:+ if (+ not is_exporting() # `torch.cdist` has no ONNX lowering+ and (not is_mps_tensor_safe(d1))+ and (not is_mps_tensor_safe(d2))+ and d1.dtype not in half+ and d2.dtype not in half+ ):return torch.cdist(d1, d2)d1_sq = (d1**2).sum(dim=1, keepdim=True)d2_sq = (d2**2).sum(dim=1, keepdim=True)diff --git a/kornia/feature/orientation.py b/kornia/feature/orientation.pyindex 7a4a7782a..d3bd38f8b 100644--- a/kornia/feature/orientation.py+++ b/kornia/feature/orientation.py@@ -228,7 +228,9 @@ class OriNet(nn.Module):@staticmethoddef _normalize_input(x: torch.Tensor, eps: float = 1e-6) -> torch.Tensor:"""Normalize the input by batch."""- sp, mp = torch.std_mean(x, dim=(-3, -2, -1), keepdim=True)+ # `torch.std_mean` decomposes to `prims.sum`, which has no ONNX lowering; the split form is equivalent.+ mp = torch.mean(x, dim=(-3, -2, -1), keepdim=True)+ sp = torch.std(x, dim=(-3, -2, -1), keepdim=True)# WARNING: we need to .detach() input, otherwise the gradients produced by# the patches extractor with F.grid_sample are very noisy, making the detector# training totally unstable.diff --git a/kornia/feature/siftdesc.py b/kornia/feature/siftdesc.pyindex 4fc3d0be1..679e11791 100644--- a/kornia/feature/siftdesc.py+++ b/kornia/feature/siftdesc.py@@ -438,7 +438,7 @@ class DenseSIFTDescriptor(nn.Module):self.PoolingConv.dilation,self.PoolingConv.groups,)- out = _l2_normalize(out_no_norm, dim=1).clamp_(0, float(self.clipval))+ out = _l2_normalize(out_no_norm, dim=1).clamp(0, float(self.clipval))out = _l2_normalize(out, dim=1)if self.rootsift:out = _rootsift(out, self.eps)diff --git a/kornia/filters/kernels.py b/kornia/filters/kernels.pyindex 07bd1239f..8149e0558 100644--- a/kornia/filters/kernels.py+++ b/kornia/filters/kernels.py@@ -159,90 +159,88 @@ def gaussian_discrete_erf(def _modified_bessel_0(x: torch.Tensor) -> torch.Tensor:- """Adapted from:https://github.com/Project-MONAI/MONAI/blob/master/monai/networks/layers/convutils.py."""- ax = torch.abs(x)+ """Adapted from:https://github.com/Project-MONAI/MONAI/blob/master/monai/networks/layers/convutils.py.- out = torch.zeros_like(x)+ Both polynomial branches are evaluated on the full tensor and merged with ``torch.where`` (instead+ of boolean-mask indexing) so that the kernel traces without data-dependent control flow.+ """+ ax = torch.abs(x)idx_a = ax < 3.75- if idx_a.any():- y = (x[idx_a] / 3.75) * (x[idx_a] / 3.75)- out[idx_a] = 1.0 + y * (- 3.5156229 + y * (3.0899424 + y * (1.2067492 + y * (0.2659732 + y * (0.360768e-1 + y * 0.45813e-2))))- )+ # small-argument branch (|x| < 3.75)+ y = (x / 3.75) * (x / 3.75)+ out_a = 1.0 + y * (+ 3.5156229 + y * (3.0899424 + y * (1.2067492 + y * (0.2659732 + y * (0.360768e-1 + y * 0.45813e-2))))+ )- idx_b = ~idx_a- if idx_b.any():- y = 3.75 / ax[idx_b]- ans = 0.916281e-2 + y * (-0.2057706e-1 + y * (0.2635537e-1 + y * (-0.1647633e-1 + y * 0.392377e-2)))- coef = 0.39894228 + y * (0.1328592e-1 + y * (0.225319e-2 + y * (-0.157565e-2 + y * ans)))- out[idx_b] = (ax[idx_b].exp() / ax[idx_b].sqrt()) * coef+ # large-argument branch; clamp keeps the unused lanes finite (|x| = 0 would divide by zero)+ ax_b = torch.where(idx_a, torch.full_like(ax, 3.75), ax)+ y = 3.75 / ax_b+ ans = 0.916281e-2 + y * (-0.2057706e-1 + y * (0.2635537e-1 + y * (-0.1647633e-1 + y * 0.392377e-2)))+ coef = 0.39894228 + y * (0.1328592e-1 + y * (0.225319e-2 + y * (-0.157565e-2 + y * ans)))+ out_b = (ax_b.exp() / ax_b.sqrt()) * coef- return out+ return torch.where(idx_a, out_a, out_b)def _modified_bessel_1(x: torch.Tensor) -> torch.Tensor:- """Adapted from:https://github.com/Project-MONAI/MONAI/blob/master/monai/networks/layers/convutils.py."""- ax = torch.abs(x)+ """Adapted from:https://github.com/Project-MONAI/MONAI/blob/master/monai/networks/layers/convutils.py.- out = torch.zeros_like(x)+ Branch-free like :func:`_modified_bessel_0`.+ """+ ax = torch.abs(x)idx_a = ax < 3.75- if idx_a.any():- y = (x[idx_a] / 3.75) * (x[idx_a] / 3.75)- ans = 0.51498869 + y * (0.15084934 + y * (0.2658733e-1 + y * (0.301532e-2 + y * 0.32411e-3)))- out[idx_a] = ax[idx_a] * (0.5 + y * (0.87890594 + y * ans))+ # small-argument branch (|x| < 3.75)+ y = (x / 3.75) * (x / 3.75)+ ans = 0.51498869 + y * (0.15084934 + y * (0.2658733e-1 + y * (0.301532e-2 + y * 0.32411e-3)))+ out_a = ax * (0.5 + y * (0.87890594 + y * ans))- idx_b = ~idx_a- if idx_b.any():- y = 3.75 / ax[idx_b]- ans = 0.2282967e-1 + y * (-0.2895312e-1 + y * (0.1787654e-1 - y * 0.420059e-2))- ans = 0.39894228 + y * (-0.3988024e-1 + y * (-0.362018e-2 + y * (0.163801e-2 + y * (-0.1031555e-1 + y * ans))))- ans = ans * ax[idx_b].exp() / ax[idx_b].sqrt()- out[idx_b] = torch.where(x[idx_b] < 0, -ans, ans)+ # large-argument branch; clamp keeps the unused lanes finite (|x| = 0 would divide by zero)+ ax_b = torch.where(idx_a, torch.full_like(ax, 3.75), ax)+ y = 3.75 / ax_b+ ans = 0.2282967e-1 + y * (-0.2895312e-1 + y * (0.1787654e-1 - y * 0.420059e-2))+ ans = 0.39894228 + y * (-0.3988024e-1 + y * (-0.362018e-2 + y * (0.163801e-2 + y * (-0.1031555e-1 + y * ans))))+ ans = ans * ax_b.exp() / ax_b.sqrt()+ out_b = torch.where(x < 0, -ans, ans)- return out+ return torch.where(idx_a, out_a, out_b)def _modified_bessel_i(n: int, x: torch.Tensor) -> torch.Tensor:"""Adapted from: https://github.com/Project-MONAI/MONAI/blob/master/monai/networks/layers/convutils.py."""KORNIA_CHECK(n >= 2, "n must be greater than 1.99")+ # I_n(0) = 0 for n >= 1. The zero lanes are computed on a safe placeholder and masked out at the+ # end instead of being compacted away, so the recurrence has no data-dependent control flow.is_zero_mask = torch.isclose(x, torch.tensor(0.0, device=x.device, dtype=x.dtype))- if is_zero_mask.all():- return x-- x_nz = x[~is_zero_mask]+ x_nz = torch.where(is_zero_mask, torch.ones_like(x), x)- batch_size = x_nz.shape[0]tox = 2.0 / x_nz.abs()- ans = torch.zeros(batch_size, device=x.device, dtype=x.dtype)- bip = torch.zeros(batch_size, device=x.device, dtype=x.dtype)- bi = torch.ones(batch_size, device=x.device, dtype=x.dtype)+ ans = torch.zeros_like(x)+ bip = torch.zeros_like(x)+ bi = torch.ones_like(x)m = int(2 * (n + int(math.sqrt(40.0 * n))))for j in range(m, 0, -1):bim = torch.addcmul(bip, tox, bi, value=j)bip, bi = bi, bim+ # Rescale only the lanes that grow past 1e10; the other lanes pass through unchanged.scale_mask = bi.abs() > 1.0e10- if scale_mask.any():- factor = torch.where(scale_mask, 1e-10, 1.0)- ans *= factor- bi *= factor- bip *= factor+ ans = torch.where(scale_mask, ans * 1e-10, ans)+ bi = torch.where(scale_mask, bi * 1e-10, bi)+ bip = torch.where(scale_mask, bip * 1e-10, bip)if j == n:ans = bip- out_nz = ans * _modified_bessel_0(x_nz) / bi+ out = ans * _modified_bessel_0(x_nz) / biif (n % 2) == 1:- out_nz = torch.where(x_nz < 0.0, -out_nz, out_nz)+ out = torch.where(x_nz < 0.0, -out, out)- out = torch.zeros_like(x)- out[~is_zero_mask] = out_nz- return out+ return torch.where(is_zero_mask, torch.zeros_like(x), out)def gaussian_discrete(diff --git a/kornia/filters/median.py b/kornia/filters/median.pyindex ee26c7bce..b7c83cc37 100644--- a/kornia/filters/median.py+++ b/kornia/filters/median.py@@ -22,6 +22,7 @@ import torch.nn.functional as Ffrom torch import nnfrom kornia.core.check import KORNIA_CHECK_IS_TENSOR, KORNIA_CHECK_SHAPE+from kornia.core.utils import is_exportingfrom .kernels import _unpack_2d_ks, get_binary_kernel2d@@ -69,6 +70,9 @@ def median_blur(input: torch.Tensor, kernel_size: tuple[int, int] | int) -> torcfeatures = features.view(b, c, ky * kx, h, w) # BxCx(K_h * K_w)xHxW# compute the median along the feature axis+ if is_exporting():+ # ``median.dim`` has no ONNX lowering; a sort picks the same (lower-middle) element.+ return features.sort(dim=2)[0][:, :, (ky * kx - 1) // 2]return features.median(dim=2)[0]diff --git a/kornia/geometry/bbox.py b/kornia/geometry/bbox.pyindex f30ac0f1b..a8d8bcac3 100644--- a/kornia/geometry/bbox.py+++ b/kornia/geometry/bbox.py@@ -21,6 +21,8 @@ from typing import Optionalimport torch+from kornia.core.utils import is_exporting+from .linalg import transform_points__all__ = [@@ -111,6 +113,10 @@ def validate_bbox3d(boxes: torch.Tensor) -> bool:if len(boxes.shape) == 4:boxes = boxes.view(-1, 8, 3)+ # The cube checks below read the data, which graph capture cannot do; skip them under export.+ if is_exporting():+ return True+left = torch.index_select(boxes, 1, torch.tensor([1, 2, 5, 6], device=boxes.device, dtype=torch.long))[:, :, 0]right = torch.index_select(boxes, 1, torch.tensor([0, 3, 4, 7], device=boxes.device, dtype=torch.long))[:, :, 0]widths = left - right + 1diff --git a/kornia/geometry/boxes.py b/kornia/geometry/boxes.pyindex c2d511f9a..f65fb17ef 100644--- a/kornia/geometry/boxes.py+++ b/kornia/geometry/boxes.py@@ -23,6 +23,7 @@ import torchfrom torch import Sizefrom kornia.core.ops import eye_like+from kornia.core.utils import is_exportingfrom kornia.geometry.linalg import transform_points__all__ = ["Boxes", "Boxes3D", "VideoBoxes"]@@ -136,7 +137,8 @@ def _boxes_to_quadrilaterals(boxes: torch.Tensor, mode: str = "xyxy", validate_belse:raise ValueError(f"Unknown mode {mode}")- if validate_boxes:+ # Value validation reads the data, which graph capture cannot do; skip it under export.+ if validate_boxes and not is_exporting():if (width <= 0).any():raise ValueError("Some boxes have negative widths or 0.")if (height <= 0).any():@@ -741,7 +743,8 @@ class Boxes:# -----------------# CPU Hotpath (loop)# ------------------ if device.type != "cuda":+ # The loop slices with data-dependent bounds, which graph capture cannot do; export takes the vectorized path.+ if device.type != "cuda" and not is_exporting():if self._is_batched: # (B, N, 4, 2)mask = torch.zeros((self._data.shape[0], self._data.shape[1], height, width), dtype=self.dtype, device=self.device@@ -1143,7 +1146,8 @@ class Boxes3D:else:raise ValueError(f"Unknown mode {mode}")- if validate_boxes:+ # Value validation reads the data, which graph capture cannot do; skip it under export.+ if validate_boxes and not is_exporting():if (width <= 0).any():raise ValueError("Some boxes have negative widths or 0.")if (height <= 0).any():@@ -1308,11 +1312,24 @@ class Boxes3D:clipped_boxes_xyzxyz[..., 1::3].clamp_(0, height)clipped_boxes_xyzxyz[..., 2::3].clamp_(0, depth)+ # Cast boxes coordinates to be integer to use them as bounds. Use round to handle decimal values.+ xyzxyz = clipped_boxes_xyzxyz.view(-1, 6).round().long()++ if is_exporting():+ # The loop below slices with data-dependent bounds, which graph capture cannot do; compare a+ # coordinate grid against the bounds instead.+ device = self._data.device+ zs = torch.arange(depth, device=device)+ ys = torch.arange(height, device=device)+ xs = torch.arange(width, device=device)+ z_mask = (zs[None, :] >= xyzxyz[:, 2:3]) & (zs[None, :] < xyzxyz[:, 5:6])+ y_mask = (ys[None, :] >= xyzxyz[:, 1:2]) & (ys[None, :] < xyzxyz[:, 4:5])+ x_mask = (xs[None, :] >= xyzxyz[:, 0:1]) & (xs[None, :] < xyzxyz[:, 3:4])+ masks = z_mask[:, :, None, None] & y_mask[:, None, :, None] & x_mask[:, None, None, :]+ return masks.to(mask.dtype).view(mask.shape)+# Reshape mask to (BxN, D, H, W) and boxes to (BxN, 6) to iterate over all of them.- # Cast boxes coordinates to be integer to use them as indexes. Use round to handle decimal values.- for mask_channel, box_xyzxyz in zip(- mask.view(-1, depth, height, width), clipped_boxes_xyzxyz.view(-1, 6).round().int()- ):+ for mask_channel, box_xyzxyz in zip(mask.view(-1, depth, height, width), xyzxyz):# Mask channel dimensions: (depth, height, width)mask_channel[box_xyzxyz[2] : box_xyzxyz[5], box_xyzxyz[1] : box_xyzxyz[4], box_xyzxyz[0] : box_xyzxyz[3]diff --git a/kornia/geometry/calibration/distort.py b/kornia/geometry/calibration/distort.pyindex e0383f000..74a084c83 100644--- a/kornia/geometry/calibration/distort.py+++ b/kornia/geometry/calibration/distort.py@@ -20,6 +20,8 @@ from typing import Optionalimport torchimport torch.nn.functional as F+from kornia.core.utils import is_exporting+# Based on https://github.com/opencv/opencv/blob/master/modules/calib3d/src/distortion_model.hpp#L75def tilt_projection(taux: torch.Tensor, tauy: torch.Tensor, return_inverse: bool = False) -> torch.Tensor:@@ -154,8 +156,9 @@ def distort_points(+ dist[..., 11:12] * r4)- # Compensate for tilt distortion- if torch.any(dist[..., 12] != 0) or torch.any(dist[..., 13] != 0):+ # Compensate for tilt distortion. The zero test reads the data, which graph capture cannot do, so the+ # exported graph always applies the tilt (an identity when both tau coefficients are zero).+ if is_exporting() or torch.any(dist[..., 12] != 0) or torch.any(dist[..., 13] != 0):tilt = tilt_projection(dist[..., 12], dist[..., 13])# Transposed untilt points (instead of [x,y,1]^T, we obtain [x,y,1])diff --git a/kornia/geometry/calibration/undistort.py b/kornia/geometry/calibration/undistort.pyindex 52bbf4eb4..f800b766e 100644--- a/kornia/geometry/calibration/undistort.py+++ b/kornia/geometry/calibration/undistort.py@@ -23,6 +23,7 @@ import torchimport torch.nn.functional as Ffrom kornia.core.check import KORNIA_CHECK_SHAPE+from kornia.core.utils import is_exportingfrom kornia.geometry.grid import create_meshgridfrom kornia.geometry.linalg import transform_pointsfrom kornia.geometry.transform import remap@@ -93,8 +94,9 @@ def undistort_points(x: torch.Tensor = (points[..., 0] - cx) / fx # (BxN - Bx1)/Bx1 -> BxNy: torch.Tensor = (points[..., 1] - cy) / fy # (BxN - Bx1)/Bx1 -> BxN- # Compensate for tilt distortion- if torch.any(dist[..., 12] != 0) or torch.any(dist[..., 13] != 0):+ # Compensate for tilt distortion. The zero test reads the data, which graph capture cannot do, so the+ # exported graph always applies the tilt (an identity when both tau coefficients are zero).+ if is_exporting() or torch.any(dist[..., 12] != 0) or torch.any(dist[..., 13] != 0):inv_tilt = tilt_projection(dist[..., 12], dist[..., 13], True)# Transposed untilt points (instead of [x,y,1]^T, we obtain [x,y,1])diff --git a/kornia/geometry/camera/pinhole.py b/kornia/geometry/camera/pinhole.pyindex 851476bbd..f130647e9 100644--- a/kornia/geometry/camera/pinhole.py+++ b/kornia/geometry/camera/pinhole.py@@ -267,7 +267,7 @@ class PinholeCamera:torch.Tensor of shape :math:`(B, 4, 4)`."""- return self.intrinsics.inverse()+ return _torch_inverse_cast(self.intrinsics)def scale(self, scale_factor: torch.Tensor) -> "PinholeCamera":r"""Scale the pinhole model.diff --git a/kornia/geometry/camera/stereo.py b/kornia/geometry/camera/stereo.pyindex f40df3023..62ca66fc4 100644--- a/kornia/geometry/camera/stereo.py+++ b/kornia/geometry/camera/stereo.py@@ -19,6 +19,7 @@ from typing import Anyimport torch+from kornia.core.utils import is_exportingfrom kornia.geometry.grid import create_meshgridfrom kornia.geometry.linalg import transform_points@@ -123,7 +124,10 @@ class StereoCamera:)# Ensure all intrinsics parameters (fx, fy, cx, cy) are the same in both cameras.- if not torch.all(torch.eq(rectified_left_camera[..., :, :3], rectified_right_camera[..., :, :3])):+ # The check reads the data, which graph capture cannot do; skip it under export.+ if not is_exporting() and not torch.all(+ torch.eq(rectified_left_camera[..., :, :3], rectified_right_camera[..., :, :3])+ ):raise StereoException("Expected 'left_rectified_camera' and 'rectified_right_camera' to have""same parameters except for the last column."@@ -132,7 +136,7 @@ class StereoCamera:# Ensure that tx * fx is negative and exists.tx_fx = rectified_right_camera[..., 0, 3]- if torch.all(torch.gt(tx_fx, 0)):+ if not is_exporting() and torch.all(torch.gt(tx_fx, 0)):raise StereoException(f"Expected :math:`T_x * f_x` to be negative. Got {tx_fx}.")@propertydiff --git a/kornia/geometry/epipolar/numeric.py b/kornia/geometry/epipolar/numeric.pyindex fb34e50a8..2cb078a54 100644--- a/kornia/geometry/epipolar/numeric.py+++ b/kornia/geometry/epipolar/numeric.py@@ -19,8 +19,6 @@import torch-from kornia.core.utils import _torch_inverse_cast-def cross_product_matrix(x: torch.Tensor) -> torch.Tensor:r"""Return the cross_product_matrix symmetric matrix of a vector.@@ -53,14 +51,8 @@ def matrix_cofactor_tensor(matrix: torch.Tensor) -> torch.Tensor:matrix: The input matrix in the shape :math:`(*, 3, 3)`."""- det = torch.det(matrix)- singular_mask = det != 0- if singular_mask.sum() != 0:- # B, 3, 3- cofactor = _torch_inverse_cast(matrix[singular_mask]).transpose(-2, -1) * det[singular_mask][:, None, None]- # return cofactor matrix of the given matrix- returned_cofactor = torch.zeros_like(matrix)- returned_cofactor[singular_mask] = cofactor- return returned_cofactor- else:- raise Exception("all singular matrices")+ # Closed form: the rows of the cofactor matrix are the cross products of the other two rows. Unlike the+ # ``det * inv(M)^T`` identity it is exact for singular input (essential matrices are rank 2 by construction),+ # needs no inverse, and traces under graph capture.+ r0, r1, r2 = matrix[..., 0, :], matrix[..., 1, :], matrix[..., 2, :]+ return torch.stack([torch.cross(r1, r2, dim=-1), torch.cross(r2, r0, dim=-1), torch.cross(r0, r1, dim=-1)], dim=-2)diff --git a/kornia/geometry/liegroup/se2.py b/kornia/geometry/liegroup/se2.pyindex 3c38860c3..e8c4eff87 100644--- a/kornia/geometry/liegroup/se2.py+++ b/kornia/geometry/liegroup/se2.py@@ -26,6 +26,8 @@ import torch.nn.functional as Ffrom torch import nnfrom kornia.core.check import KORNIA_CHECK, KORNIA_CHECK_SAME_DEVICES, KORNIA_CHECK_SHAPE, KORNIA_CHECK_TYPE+from kornia.core.tensor_wrapper import _unwrap+from kornia.core.utils import register_module_statefrom kornia.geometry.liegroup.so2 import So2from kornia.geometry.vector import Vector2@@ -87,11 +89,11 @@ class Se2(nn.Module):KORNIA_CHECK_TYPE(rotation, So2)if not isinstance(translation, (Vector2, torch.Tensor)):raise TypeError(f"translation type is {type(translation)}")- self._translation: Vector2 | nn.Parameter+ self._translation: Vector2 | torch.Tensorself._rotation: So2 = rotationif isinstance(translation, torch.Tensor):_check_se2_r_t_shape(rotation, translation) # TODO remove- self._translation = nn.Parameter(translation)+ register_module_state(self, "_translation", translation)else:self._translation = translation@@ -146,7 +148,7 @@ class Se2(nn.Module):return self._rotation@property- def t(self) -> Vector2 | nn.Parameter:+ def t(self) -> Vector2 | torch.Tensor:"""Return the underlying translation vector of shape :math:`(B,2)`."""return self._translation@@ -156,7 +158,7 @@ class Se2(nn.Module):return self._rotation@property- def translation(self) -> Vector2 | nn.Parameter:+ def translation(self) -> Vector2 | torch.Tensor:"""Return the underlying translation vector of shape :math:`(B,2)`."""return self._translation@@ -174,8 +176,7 @@ class Se2(nn.Module):Parameter containing:tensor([0.5403+0.8415j], requires_grad=True)>>> s.t- Parameter containing:- tensor([[0.3818, 1.3012]], requires_grad=True)+ tensor([[0.3818, 1.3012]], grad_fn=<StackBackward0>)"""# check_v_shape@@ -219,7 +220,7 @@ class Se2(nn.Module):row0 = torch.stack((a, half_theta), -1)row1 = torch.stack((-half_theta, a), -1)V_inv = torch.stack((row0, row1), -2)- upsilon = V_inv @ self.t.data[..., None]+ upsilon = V_inv @ _unwrap(self.t)[..., None]return torch.stack((upsilon[..., 0, 0], upsilon[..., 1, 0], theta), -1)@staticmethod@@ -313,7 +314,7 @@ class Se2(nn.Module):[0., 0., 1.]]], grad_fn=<CopySlices>)"""- rt = torch.cat((self.r.matrix(), self.t.data[..., None]), -1)+ rt = torch.cat((self.r.matrix(), _unwrap(self.t)[..., None]), -1)rt_3x3 = F.pad(rt, (0, 0, 0, 1)) # add last row torch.zerosrt_3x3[..., -1, -1] = 1.0return rt_3x3@@ -348,11 +349,9 @@ class Se2(nn.Module):>>> s = Se2(So2.identity(1), torch.ones(1,2))>>> s_inv = s.inverse()>>> s_inv.r- Parameter containing:- tensor([1.+0.j], requires_grad=True)+ tensor([1.+0.j], grad_fn=<MulBackward0>)>>> s_inv.t- Parameter containing:- tensor([[-1., -1.]], requires_grad=True)+ tensor([[-1., -1.]], grad_fn=<StackBackward0>)"""r_inv: So2 = self.r.inverse()@@ -439,5 +438,6 @@ class Se2(nn.Module):"""rt = self.matrix()- rt[..., 0:2, 2] = torch.stack((self.t.data[..., 1], -self.t.data[..., 0]), -1)+ t = _unwrap(self.t)+ rt[..., 0:2, 2] = torch.stack((t[..., 1], -t[..., 0]), -1)return rtdiff --git a/kornia/geometry/liegroup/se3.py b/kornia/geometry/liegroup/se3.pyindex 332f4c60b..15a43ec6c 100644--- a/kornia/geometry/liegroup/se3.py+++ b/kornia/geometry/liegroup/se3.py@@ -26,6 +26,8 @@ import torch.nn.functional as Ffrom torch import nnfrom kornia.core.check import KORNIA_CHECK, KORNIA_CHECK_SAME_DEVICES, KORNIA_CHECK_SHAPE+from kornia.core.tensor_wrapper import _unwrap+from kornia.core.utils import register_module_statefrom kornia.geometry.liegroup.so3 import So3from kornia.geometry.linalg import batched_dot_productfrom kornia.geometry.quaternion import Quaternion@@ -79,10 +81,10 @@ class Se3(nn.Module):raise TypeError(f"translation type is {type(translation)}")_t_data = translation.data if isinstance(translation, Vector3) else translationKORNIA_CHECK_SHAPE(_t_data, ["*", "3"])- self._translation: Vector3 | nn.Parameter+ self._translation: Vector3 | torch.Tensorself._rotation: So3if isinstance(translation, torch.Tensor):- self._translation = nn.Parameter(translation)+ register_module_state(self, "_translation", translation)else:self._translation = translationif isinstance(rotation, Quaternion):@@ -119,7 +121,7 @@ class Se3(nn.Module):elif isinstance(right, (Vector3, torch.Tensor)):_right_data = right if isinstance(right, torch.Tensor) else right.dataKORNIA_CHECK_SHAPE(_right_data, ["*", "N"])- return so3 * right + t.data+ return so3 * right + _unwrap(t)else:raise TypeError(f"Unsupported type: {type(right)}")@@ -192,12 +194,12 @@ class Se3(nn.Module):>>> from kornia.geometry.quaternion import Quaternion>>> q = Quaternion.identity()>>> Se3(q, torch.zeros(3)).log()- tensor([0., 0., 0., 0., 0., 0.])+ tensor([0., 0., 0., 0., 0., 0.], grad_fn=<CatBackward0>)"""omega = self.r.log()theta = batched_dot_product(omega, omega).clamp_min(1e-12).sqrt()- t = self.t.data+ t = _unwrap(self.t)omega_hat = So3.hat(omega)omega_hat_sq = omega_hat @ omega_hatV_inv = (@@ -295,10 +297,10 @@ class Se3(nn.Module):tensor([[1., 0., 0., 1.],[0., 1., 0., 1.],[0., 0., 1., 1.],- [0., 0., 0., 1.]])+ [0., 0., 0., 1.]], grad_fn=<CopySlices>)"""- rt = torch.cat((self.r.matrix(), self.t.data[..., None]), -1)+ rt = torch.cat((self.r.matrix(), _unwrap(self.t)[..., None]), -1)rt_4x4 = F.pad(rt, (0, 0, 0, 1)) # add last row torch.zerosrt_4x4[..., -1, -1] = 1.0return rt_4x4@@ -355,8 +357,7 @@ class Se3(nn.Module):>>> s_inv.rtensor([1., -0., -0., -0.])>>> s_inv.t- Parameter containing:- tensor([-1., -1., -1.], requires_grad=True)+ tensor([-1., -1., -1.], grad_fn=<SliceBackward0>)"""r_inv = self.r.inverse()diff --git a/kornia/geometry/liegroup/so2.py b/kornia/geometry/liegroup/so2.pyindex a5b126a0b..448c1128c 100644--- a/kornia/geometry/liegroup/so2.py+++ b/kornia/geometry/liegroup/so2.py@@ -25,6 +25,8 @@ import torchfrom torch import nnfrom kornia.core.check import KORNIA_CHECK, KORNIA_CHECK_IS_TENSOR, KORNIA_CHECK_SHAPE+from kornia.core.tensor_wrapper import _unwrap+from kornia.core.utils import is_exporting, register_module_statefrom kornia.geometry.vector import Vector2@@ -71,7 +73,7 @@ class So2(nn.Module):if not (is_scalar or is_flat or is_column):raise ValueError(f"Invalid input size, we expect [], [B], or [B, 1]. Got: {z.shape}")- self._z = nn.Parameter(z)+ register_module_state(self, "_z", z)def __repr__(self) -> str:return f"{self.z}"@@ -105,8 +107,9 @@ class So2(nn.Module):is_single_shape = KORNIA_CHECK_SHAPE(right, ["2"], raises=False)if not (is_batch_shape or is_single_shape):raise ValueError(f"Invalid translation shape, we expect [B, 2], or [2] Got: {right.shape}")- x = right.data[..., 0]- y = right.data[..., 1]+ right_data = _unwrap(right)+ x = right_data[..., 0]+ y = right_data[..., 1]real = z.realimag = z.imagout = torch.stack((real * x - imag * y, imag * x + real * y), -1)@@ -242,10 +245,12 @@ class So2(nn.Module):KORNIA_CHECK_IS_TENSOR(matrix)if len(matrix.shape) < 2 or matrix.shape[-2:] != (2, 2):raise ValueError(f"Input size must be (*, 2, 2). Got {matrix.shape}")- mask_diag = torch.allclose(matrix[..., 0, 0], matrix[..., 1, 1])- mask_off_diag = torch.allclose(matrix[..., 0, 1], -matrix[..., 1, 0])- if not (mask_diag and mask_off_diag):- raise ValueError("Invalid SO2 rotation matrix: constraints m00==m11 and m01==-m10 not met.")+ # Value validation reads the data, which graph capture cannot do; skip it under export.+ if not is_exporting():+ mask_diag = torch.allclose(matrix[..., 0, 0], matrix[..., 1, 1])+ mask_off_diag = torch.allclose(matrix[..., 0, 1], -matrix[..., 1, 0])+ if not (mask_diag and mask_off_diag):+ raise ValueError("Invalid SO2 rotation matrix: constraints m00==m11 and m01==-m10 not met.")z = torch.complex(matrix[..., 0, 0], matrix[..., 1, 0])return cls(z)@@ -284,8 +289,7 @@ class So2(nn.Module):Example:>>> s = So2.identity()>>> s.inverse().z- Parameter containing:- tensor(1.+0.j, requires_grad=True)+ tensor(1.+0.j, grad_fn=<MulBackward0>)"""return So2(1 / self.z)diff --git a/kornia/geometry/liegroup/so3.py b/kornia/geometry/liegroup/so3.pyindex 462b8b3d1..c528bd1f8 100644--- a/kornia/geometry/liegroup/so3.py+++ b/kornia/geometry/liegroup/so3.py@@ -25,6 +25,7 @@ import torchfrom torch import nnfrom kornia.core.check import KORNIA_CHECK_SHAPE, KORNIA_CHECK_TYPE+from kornia.core.tensor_wrapper import _unwrapfrom kornia.geometry.conversions import vector_to_skew_symmetric_matrixfrom kornia.geometry.linalg import batched_dot_productfrom kornia.geometry.quaternion import Quaternion@@ -88,10 +89,10 @@ class So3(nn.Module):if isinstance(right, So3):return So3(self.q * right.q)elif isinstance(right, (torch.Tensor, Vector3)):- _right_data = right if isinstance(right, torch.Tensor) else right.data+ _right_data = _unwrap(right)KORNIA_CHECK_SHAPE(_right_data, ["*", "3"])w = torch.zeros(*right.shape[:-1], 1, device=right.device, dtype=right.dtype)- quat = Quaternion(torch.cat((w, right.data), -1))+ quat = Quaternion(torch.cat((w, _right_data), -1))out = (self.q * quat * self.q.conj()).vecif isinstance(right, torch.Tensor):return outdiff --git a/kornia/geometry/line.py b/kornia/geometry/line.pyindex bc2bc0a2a..bfbd93ba6 100644--- a/kornia/geometry/line.py+++ b/kornia/geometry/line.py@@ -24,7 +24,7 @@ import torch.nn.functional as Ffrom torch import nnfrom kornia.core.check import KORNIA_CHECK, KORNIA_CHECK_IS_TENSOR, KORNIA_CHECK_SHAPE-from kornia.core.utils import _torch_svd_cast+from kornia.core.utils import _torch_svd_cast, register_module_statefrom kornia.geometry.linalg import batched_dot_productfrom kornia.geometry.plane import Hyperplane@@ -56,8 +56,8 @@ class ParametrizedLine(nn.Module):"""super().__init__()- self._origin = nn.Parameter(origin)- self._direction = nn.Parameter(direction)+ register_module_state(self, "_origin", origin)+ register_module_state(self, "_direction", direction)def __str__(self) -> str:return f"Origin: {self.origin}\nDirection: {self.direction}"@@ -169,13 +169,13 @@ class ParametrizedLine(nn.Module):intersection; the function returns lambda ``0`` and the line origin as the point."""- dot_prod = batched_dot_product(plane.normal.data, self.direction.data)+ dot_prod = batched_dot_product(plane.normal.data, self.direction)dot_prod_mask = dot_prod.abs() >= eps# TODO: add check for dot productres_lambda = torch.where(dot_prod_mask,- -(plane.offset + batched_dot_product(plane.normal.data, self.origin.data)) / dot_prod,+ -(plane.offset + batched_dot_product(plane.normal.data, self.origin)) / dot_prod,torch.zeros_like(dot_prod),)diff --git a/kornia/geometry/solvers/polynomial_solver.py b/kornia/geometry/solvers/polynomial_solver.pyindex ef593d736..931c54c6b 100644--- a/kornia/geometry/solvers/polynomial_solver.py+++ b/kornia/geometry/solvers/polynomial_solver.py@@ -65,23 +65,20 @@ def solve_quadratic(coeffs: torch.Tensor) -> torch.Tensor:# Calculate 1/(2*a) for efficient computationinv_2a = 0.5 / a- # Initialize solutions torch.Tensor- solutions = torch.zeros((coeffs.shape[0], 2), device=coeffs.device, dtype=coeffs.dtype)-- # Handle cases with zero discriminant- if torch.any(mask_zero):- solutions[mask_zero, 0] = -b[mask_zero] * inv_2a[mask_zero]- solutions[mask_zero, 1] = solutions[mask_zero, 0]-- # Negative discriminant cases are automatically handled since solutions is initialized with torch.zeros.-- sqrt_delta = torch.sqrt(delta)-- # Handle cases with non-negative discriminant- mask = torch.bitwise_and(~mask_negative, ~mask_zero)- if torch.any(mask):- solutions[mask, 0] = (-b[mask] + sqrt_delta[mask]) * inv_2a[mask]- solutions[mask, 1] = (-b[mask] - sqrt_delta[mask]) * inv_2a[mask]+ # Branch-free selection so the function traces under graph capture. The square root is only taken+ # where delta > 0: a zero discriminant yields the double root -b/(2a) with sqrt_delta = 0, and a+ # negative one yields zeros; feeding those lanes a safe placeholder keeps their gradients finite.+ zero = torch.zeros_like(delta)+ mask_nonpositive = mask_negative | mask_zero+ sqrt_delta = torch.where(+ mask_nonpositive, zero, torch.sqrt(torch.where(mask_nonpositive, torch.ones_like(delta), delta))+ )++ root_plus = (-b + sqrt_delta) * inv_2a+ root_minus = (-b - sqrt_delta) * inv_2a+ solutions = torch.stack(+ [torch.where(mask_negative, zero, root_plus), torch.where(mask_negative, zero, root_minus)], dim=-1+ )return solutionsdiff --git a/kornia/geometry/subpix/spatial_soft_argmax.py b/kornia/geometry/subpix/spatial_soft_argmax.pyindex 2c6e3334a..da106f2c5 100644--- a/kornia/geometry/subpix/spatial_soft_argmax.py+++ b/kornia/geometry/subpix/spatial_soft_argmax.py@@ -23,6 +23,7 @@ import torchimport torch.nn.functional as Ffrom torch import nn+from kornia.core.utils import is_exportingfrom kornia.geometry.conversions import normalize_pixel_coordinates, normalize_pixel_coordinates3dfrom kornia.geometry.grid import create_meshgrid, create_meshgrid3d@@ -357,7 +358,8 @@ def conv_soft_argmax2d(if not len(input.shape) == 4:raise ValueError(f"Invalid input shape, we expect BxCxHxW. Got: {input.shape}")- if temperature <= 0:+ # A tensor temperature is read here, which graph capture cannot do; skip the value check under export.+ if not is_exporting() and temperature <= 0:raise ValueError(f"Temperature should be positive float or torch.Tensor. Got: {temperature}")b, c, h, w = input.shape@@ -478,7 +480,8 @@ def conv_soft_argmax3d(if not len(input.shape) == 5:raise ValueError(f"Invalid input shape, we expect BxCxDxHxW. Got: {input.shape}")- if temperature <= 0:+ # A tensor temperature is read here, which graph capture cannot do; skip the value check under export.+ if not is_exporting() and temperature <= 0:raise ValueError(f"Temperature should be positive float or torch.Tensor. Got: {temperature}")b, c, d, h, w = input.shapediff --git a/kornia/geometry/transform/crop2d.py b/kornia/geometry/transform/crop2d.pyindex 8aacc78fc..0d909533e 100644--- a/kornia/geometry/transform/crop2d.py+++ b/kornia/geometry/transform/crop2d.py@@ -23,6 +23,7 @@ from torch import nnfrom kornia.constants import Resamplefrom kornia.core.check import KORNIA_CHECK_SHAPE+from kornia.core.utils import is_exportingfrom kornia.geometry.bbox import infer_bbox_shapefrom .affwarp import resize@@ -119,7 +120,9 @@ def crop_and_resize(dtype=input_tensor.dtype,).expand(points_src.shape[0], -1, -1)- return crop_by_boxes(input_tensor, points_src, points_dst, mode, padding_mode, align_corners)+ return _crop_by_boxes_to_size(+ input_tensor, points_src, points_dst, (dst_h, dst_w), mode, padding_mode, align_corners+ )def center_crop(@@ -203,7 +206,9 @@ def center_crop(dtype=input_tensor.dtype,).expand(points_src.shape[0], -1, -1)- return crop_by_boxes(input_tensor, points_src, points_dst, mode, padding_mode, align_corners)+ return _crop_by_boxes_to_size(+ input_tensor, points_src, points_dst, (dst_h, dst_w), mode, padding_mode, align_corners+ )def crop_by_boxes(@@ -275,13 +280,6 @@ def crop_by_boxes(RuntimeError: solve_cpu: For batch 0: U(2,2) is zero, singular U."""- if len(input_tensor.shape) != 4:- raise AssertionError(f"Only torch.Tensor with shape (B, C, H, W) supported. Got {input_tensor.shape}.")-- # compute transformation between points and warp- # Note: torch.Tensor.dtype must be float. "solve_cpu" not implemented for 'Long'- dst_trans_src: torch.Tensor = get_perspective_transform(src_box.to(input_tensor), dst_box.to(input_tensor))-bbox: Tuple[torch.Tensor, torch.Tensor] = infer_bbox_shape(dst_box)if not ((bbox[0] == bbox[0][0]).all() and (bbox[1] == bbox[1][0]).all()):raise AssertionError(@@ -291,8 +289,30 @@ def crop_by_boxes(h_out: int = int(bbox[0][0].item())w_out: int = int(bbox[1][0].item())+ return _crop_by_boxes_to_size(input_tensor, src_box, dst_box, (h_out, w_out), mode, padding_mode, align_corners)+++def _crop_by_boxes_to_size(+ input_tensor: torch.Tensor,+ src_box: torch.Tensor,+ dst_box: torch.Tensor,+ out_size: Tuple[int, int],+ mode: str = "bilinear",+ padding_mode: str = "zeros",+ align_corners: bool = False,+) -> torch.Tensor:+ # ``crop_by_boxes`` with the output size already known as Python ints. ``crop_and_resize`` and+ # ``center_crop`` build ``dst_box`` from ``size``, so they take this path and never read the box+ # values back from the device -- which also keeps them capturable by ``torch.onnx.export``.+ if len(input_tensor.shape) != 4:+ raise AssertionError(f"Only torch.Tensor with shape (B, C, H, W) supported. Got {input_tensor.shape}.")++ # compute transformation between points and warp+ # Note: torch.Tensor.dtype must be float. "solve_cpu" not implemented for 'Long'+ dst_trans_src: torch.Tensor = get_perspective_transform(src_box.to(input_tensor), dst_box.to(input_tensor))+return crop_by_transform_mat(- input_tensor, dst_trans_src, (h_out, w_out), mode=mode, padding_mode=padding_mode, align_corners=align_corners+ input_tensor, dst_trans_src, out_size, mode=mode, padding_mode=padding_mode, align_corners=align_corners)@@ -447,6 +467,17 @@ def crop_by_indices(:math:`(h, w)` is ``size`` if given, otherwise the shape inferredfrom ``src_box``.+ .. note::+ Under graph export (:func:`torch.export.export` / :func:`torch.onnx.export`) the box+ coordinates cannot be read back to Python, so the crop is captured as the same warp as+ :func:`crop_and_resize` (``align_corners=True``), which keeps the box coordinates dynamic.+ This needs ``size``: a box that is exactly ``size`` pixels (what+ :class:`~kornia.augmentation.RandomCrop` and :class:`CenterCrop2D` produce) is reproduced+ exactly, any other box is resampled to ``size`` with ``align_corners=True`` regardless of+ ``shape_compensation`` and ``align_corners``. Without ``size`` the eager path is kept: it+ reads the box coordinates back to Python, which breaks the graph under+ :func:`torch.compile` and is rejected by ``torch.export`` as data-dependent.+"""KORNIA_CHECK_SHAPE(input_tensor, ["B", "C", "H", "W"])KORNIA_CHECK_SHAPE(src_box, ["B", "4", "2"])@@ -458,6 +489,9 @@ def crop_by_indices(y1 = src[:, 0, 1]y2 = src[:, 3, 1] + 1+ if size is not None and is_exporting():+ return _crop_by_indices_export(input_tensor, src_box, size, interpolation)+# Move the four coordinate columns to Python in a single device sync (one ``tolist`` over a# stacked tensor) instead of a ``unique`` per column plus a device-to-host ``int(...)`` inside# every loop iteration β the coordinates index Python-level slicing, so they must be host ints.@@ -499,6 +533,31 @@ def crop_by_indices(return out+def _crop_by_indices_export(+ input_tensor: torch.Tensor,+ src_box: torch.Tensor,+ size: Tuple[int, int],+ interpolation: str,+) -> torch.Tensor:+ # Export path of ``crop_by_indices``: the box is resampled onto a ``size`` grid through the same+ # warp as :func:`crop_and_resize`, so the box coordinates stay graph inputs instead of being read+ # back to Python. Sampling at ``align_corners=True`` reproduces the integer slice exactly when the+ # box is already ``size`` pixels and bilinearly resizes it otherwise.+ if interpolation not in ("bilinear", "nearest", "bicubic"):+ raise ValueError(+ f"`crop_by_indices` can export with bilinear, nearest or bicubic interpolation. Got {interpolation}."+ )+ dst_h, dst_w = size+ points_dst = torch.tensor(+ [[[0, 0], [dst_w - 1, 0], [dst_w - 1, dst_h - 1], [0, dst_h - 1]]],+ device=input_tensor.device,+ dtype=input_tensor.dtype,+ ).expand(src_box.shape[0], -1, -1)+ return _crop_by_boxes_to_size(+ input_tensor, src_box.to(input_tensor), points_dst, size, interpolation, "zeros", align_corners=True+ )++class CenterCrop2D(nn.Module):"""Center crop the input torch.Tensor.diff --git a/kornia/geometry/transform/crop3d.py b/kornia/geometry/transform/crop3d.pyindex 67f376aef..87eba8665 100644--- a/kornia/geometry/transform/crop3d.py+++ b/kornia/geometry/transform/crop3d.py@@ -135,7 +135,7 @@ def crop_and_resize3d(device=tensor.device,).expand(points_src.shape[0], -1, -1)- return crop_by_boxes3d(tensor, points_src, points_dst, interpolation, align_corners)+ return _crop_by_boxes3d_to_size(tensor, points_src, points_dst, (dst_d, dst_h, dst_w), interpolation, align_corners)def center_crop3d(@@ -253,8 +253,13 @@ def center_crop3d(device=tensor.device,).expand(points_src.shape[0], -1, -1)- return crop_by_boxes3d(- tensor, points_src.to(tensor.dtype), points_dst.to(tensor.dtype), interpolation, align_corners+ return _crop_by_boxes3d_to_size(+ tensor,+ points_src.to(tensor.dtype),+ points_dst.to(tensor.dtype),+ (dst_d, dst_h, dst_w),+ interpolation,+ align_corners,)@@ -340,6 +345,28 @@ def crop_by_boxes3d([45., 46., 47.]]]]])"""+ bbox = infer_bbox_shape3d(dst_box)+ if not ((bbox[0] == bbox[0][0]).all() and (bbox[1] == bbox[1][0]).all() and (bbox[2] == bbox[2][0]).all()):+ raise AssertionError(+ "Cropping height, width and depth must be exact same in a batch."+ f"Got height {bbox[0]}, width {bbox[1]} and depth {bbox[2]}."+ )++ out_size = (int(bbox[0][0].item()), int(bbox[1][0].item()), int(bbox[2][0].item()))+ return _crop_by_boxes3d_to_size(tensor, src_box, dst_box, out_size, interpolation, align_corners)+++def _crop_by_boxes3d_to_size(+ tensor: torch.Tensor,+ src_box: torch.Tensor,+ dst_box: torch.Tensor,+ out_size: Tuple[int, int, int],+ interpolation: str = "bilinear",+ align_corners: bool = False,+) -> torch.Tensor:+ # ``crop_by_boxes3d`` with the output size already known as Python ints. ``crop_and_resize3d`` and+ # ``center_crop3d`` build ``dst_box`` from ``size``, so they take this path and never read the box+ # values back from the device -- which also keeps them capturable by ``torch.onnx.export``.validate_bbox3d(src_box)validate_bbox3d(dst_box)@@ -352,19 +379,8 @@ def crop_by_boxes3d(# simulate broadcastingdst_trans_src = dst_trans_src.expand(tensor.shape[0], -1, -1).type_as(tensor)- bbox = infer_bbox_shape3d(dst_box)- if not ((bbox[0] == bbox[0][0]).all() and (bbox[1] == bbox[1][0]).all() and (bbox[2] == bbox[2][0]).all()):- raise AssertionError(- "Cropping height, width and depth must be exact same in a batch."- f"Got height {bbox[0]}, width {bbox[1]} and depth {bbox[2]}."- )-patches: torch.Tensor = crop_by_transform_mat3d(- tensor,- dst_trans_src,- (int(bbox[0][0].item()), int(bbox[1][0].item()), int(bbox[2][0].item())),- mode=interpolation,- align_corners=align_corners,+ tensor, dst_trans_src, out_size, mode=interpolation, align_corners=align_corners)return patchesdiff --git a/kornia/geometry/transform/image_registrator.py b/kornia/geometry/transform/image_registrator.pyindex 63c96ce17..03b7ccf51 100644--- a/kornia/geometry/transform/image_registrator.py+++ b/kornia/geometry/transform/image_registrator.py@@ -22,6 +22,7 @@ import torchimport torch.nn.functional as Ffrom torch import nn, optim+from kornia.core.utils import _torch_inverse_castfrom kornia.geometry.conversions import angle_to_rotation_matrix, convert_affinematrix_to_homographyfrom .homography_warper import BaseWarper, HomographyWarper@@ -90,7 +91,7 @@ class Homography(BaseModel):Homography martix with shape :math:`(1, 3, 3)`."""- return torch.unsqueeze(torch.inverse(self.model), dim=0)+ return torch.unsqueeze(_torch_inverse_cast(self.model), dim=0)class Similarity(BaseModel):@@ -148,7 +149,7 @@ class Similarity(BaseModel):Similarity with shape :math:`(1, 3, 3)`"""- return torch.inverse(self.forward())+ return _torch_inverse_cast(self.forward())class ImageRegistrator(nn.Module):diff --git a/kornia/losses/hausdorff.py b/kornia/losses/hausdorff.pyindex 1b8bf38ea..d19ba3f55 100644--- a/kornia/losses/hausdorff.py+++ b/kornia/losses/hausdorff.py@@ -22,6 +22,8 @@ from typing import Callableimport torchfrom torch import nn+from kornia.core.utils import is_exporting+class _HausdorffERLossBase(nn.Module):"""Base class for binary Hausdorff loss based on morphological erosion.@@ -76,15 +78,16 @@ class _HausdorffERLossBase(nn.Module):# image-wise differences for 2D imageserosion_max = self.max_pool(erosion)erosion_min = -self.max_pool(-erosion)- # No normalization needed if `max - min = 0`- _to_norm = (erosion_max - erosion_min) != 0- to_norm = _to_norm.squeeze()- if to_norm.any():- # NOTE: avoid in-place ops like below, which will not pass gradcheck:- # erosion[to_norm] = (erosion[to_norm] - erosion_min[to_norm]) / (- # erosion_max[to_norm] - erosion_min[to_norm])- _erosion_to_fill = (erosion - erosion_min) / (erosion_max - erosion_min)- erosion = torch.where(mask * _to_norm, _erosion_to_fill, erosion)+ # No normalization needed if `max - min = 0`: those lanes keep ``erosion`` through the+ # ``where`` below and divide by a safe 1 so they stay finite (a NaN in the unselected+ # branch would still poison the gradient). Branch-free, so the loss also traces for export.+ # NOTE: avoid in-place ops like below, which will not pass gradcheck:+ # erosion[to_norm] = (erosion[to_norm] - erosion_min[to_norm]) / (+ # erosion_max[to_norm] - erosion_min[to_norm])+ _range = erosion_max - erosion_min+ _to_norm = _range != 0+ _erosion_to_fill = (erosion - erosion_min) / torch.where(_to_norm, _range, torch.ones_like(_range))+ erosion = torch.where(mask * _to_norm, _erosion_to_fill, erosion)# save erosion and add to losseroded = eroded + erosion * (k + 1) ** self.alpha@@ -110,7 +113,8 @@ class _HausdorffERLossBase(nn.Module):f"Got {pred.shape} and {target.shape}.")- if pred.size(1) < target.max().item():+ # The range check reads the data, which graph capture cannot do; skip it under export.+ if not is_exporting() and pred.size(1) < target.max().item():raise ValueError("Invalid target value.")out = torch.stack(@@ -177,7 +181,11 @@ class HausdorffERLoss(_HausdorffERLossBase):"""conv = torch.conv2d- max_pool = nn.AdaptiveMaxPool2d(1)++ @staticmethod+ def max_pool(x: torch.Tensor) -> torch.Tensor:+ # Global max over the spatial dims; equals ``nn.AdaptiveMaxPool2d(1)`` but has an ONNX lowering.+ return x.amax(dim=(-2, -1), keepdim=True)def get_kernel(self) -> torch.Tensor:"""Get kernel for image morphology convolution."""@@ -200,7 +208,10 @@ class HausdorffERLoss(_HausdorffERLossBase):if pred.dim() != 4:raise ValueError(f"Only 2D images supported. Got {pred.dim()}.")- if not (target.max() < pred.size(1) and target.min() >= 0 and target.dtype == torch.long):+ if target.dtype != torch.long:+ raise ValueError(f"Expect long type target value in range (0, {pred.size(1)}). Got {target.dtype}.")+ # The range check reads the data, which graph capture cannot do; skip it under export.+ if not is_exporting() and not (target.max() < pred.size(1) and target.min() >= 0):raise ValueError(f"Expect long type target value in range (0, {pred.size(1)}). ({target.min()}, {target.max()})")@@ -245,7 +256,11 @@ class HausdorffERLoss3D(_HausdorffERLossBase):"""conv = torch.conv3d- max_pool = nn.AdaptiveMaxPool3d(1)++ @staticmethod+ def max_pool(x: torch.Tensor) -> torch.Tensor:+ # Global max over the volume dims; equals ``nn.AdaptiveMaxPool3d(1)`` but has an ONNX lowering.+ return x.amax(dim=(-3, -2, -1), keepdim=True)def get_kernel(self) -> torch.Tensor:"""Get kernel for image morphology convolution."""diff --git a/kornia/losses/mutual_information.py b/kornia/losses/mutual_information.pyindex e2fdc958a..e7a361768 100644--- a/kornia/losses/mutual_information.py+++ b/kornia/losses/mutual_information.py@@ -21,6 +21,8 @@ from functools import partialimport torch+from kornia.core.utils import is_exporting+def xu_kernel(x: torch.Tensor, window_radius: float = 1.0) -> torch.Tensor:"""Implementation of a 2nd-order polynomial kernel for Kernel density estimate (Xu et al., 2008).@@ -102,6 +104,19 @@ def _flatten_mask(mask: torch.Tensor | None) -> torch.Tensor:return mask.view(-1)+def _mask_is_full(mask: torch.Tensor | None) -> bool:+ """Whether ``mask`` selects everything: ``None`` or a single ``True`` broadcast over the signal.++ A one-element mask is decided structurally under graph capture (a single ``False`` would mask+ the whole signal, which is never meaningful), so exported graphs carry no data-dependent gather.+ """+ if mask is None:+ return True+ if mask.numel() != 1:+ return False+ return True if is_exporting() else bool(mask.reshape(()))++def _normalize_signal(data: torch.Tensor, num_bins: int, eps: float = 1e-8) -> torch.Tensor:min_val, _ = data.min(dim=-1)max_val, _ = data.max(dim=-1)@@ -166,6 +181,7 @@ class EntropyBasedLossBase(torch.nn.Module):ValueError: If kernel_function is not a valid MIKernel member."""super().__init__()+ self._ref_mask_is_full = _mask_is_full(mask)mask = self.fix_mask(mask, reference_signal)self.eps = torch.finfo(reference_signal.dtype).epsself.initial_shape = reference_signal.shape@@ -252,15 +268,23 @@ class EntropyBasedLossBase(torch.nn.Module):raise ValueError(f"The two signals have incompatible shapes: {other_signal.shape} and {self.initial_shape}.")- # normalize in restriction to mask and recast in self.signal coords- other_mask = self.fix_mask(other_mask, other_signal)- other_signal = other_signal[..., other_mask]- other_signal = _normalize_signal(other_signal, num_bins=self.num_bins, eps=eps)- other_signal = self.trace_in_ref_mask(other_signal, other_mask)- common_mask = other_mask[self.mask]-- diff_1 = self.bin_centers.unsqueeze(-1) - self.signal[..., common_mask].unsqueeze(-2)- diff_2 = self.bin_centers.unsqueeze(-1) - other_signal[..., common_mask].unsqueeze(-2)+ if self._ref_mask_is_full and _mask_is_full(other_mask):+ # No roi on either side: skip the boolean-mask gathers, whose output sizes depend on the+ # mask values and therefore cannot be captured by ``torch.export``/ONNX.+ ref_signal = self.signal+ other_signal = _normalize_signal(other_signal, num_bins=self.num_bins, eps=eps)+ else:+ # normalize in restriction to mask and recast in self.signal coords+ other_mask = self.fix_mask(other_mask, other_signal)+ other_signal = other_signal[..., other_mask]+ other_signal = _normalize_signal(other_signal, num_bins=self.num_bins, eps=eps)+ other_signal = self.trace_in_ref_mask(other_signal, other_mask)+ common_mask = other_mask[self.mask]+ ref_signal = self.signal[..., common_mask]+ other_signal = other_signal[..., common_mask]++ diff_1 = self.bin_centers.unsqueeze(-1) - ref_signal.unsqueeze(-2)+ diff_2 = self.bin_centers.unsqueeze(-1) - other_signal.unsqueeze(-2)vals_1 = self.kernel_function(diff_1)vals_2 = self.kernel_function(diff_2)diff --git a/kornia/metrics/mean_iou.py b/kornia/metrics/mean_iou.pyindex f865726f8..0a4a206aa 100644--- a/kornia/metrics/mean_iou.py+++ b/kornia/metrics/mean_iou.py@@ -17,6 +17,8 @@import torch+from kornia.core.utils import is_exporting+from .confusion_matrix import confusion_matrix@@ -146,15 +148,19 @@ def mean_iou_bbox(boxes_1: torch.Tensor, boxes_2: torch.Tensor, box_format: strboxes_1_xyxy = _convert_boxes_to_xyxy(boxes_1, box_format)boxes_2_xyxy = _convert_boxes_to_xyxy(boxes_2, box_format)- # Validate boxes are in proper xyxy format- if not (- ((boxes_1_xyxy[:, 2] - boxes_1_xyxy[:, 0]) > 0).all() and ((boxes_1_xyxy[:, 3] - boxes_1_xyxy[:, 1]) > 0).all()- ):- raise AssertionError("Boxes_1 contains invalid boxes after conversion.")- if not (- ((boxes_2_xyxy[:, 2] - boxes_2_xyxy[:, 0]) > 0).all() and ((boxes_2_xyxy[:, 3] - boxes_2_xyxy[:, 1]) > 0).all()- ):- raise AssertionError("Boxes_2 contains invalid boxes after conversion.")+ # Validate boxes are in proper xyxy format. The checks read the data, which graph capture cannot do;+ # skip them under export.+ if not is_exporting():+ if not (+ ((boxes_1_xyxy[:, 2] - boxes_1_xyxy[:, 0]) > 0).all()+ and ((boxes_1_xyxy[:, 3] - boxes_1_xyxy[:, 1]) > 0).all()+ ):+ raise AssertionError("Boxes_1 contains invalid boxes after conversion.")+ if not (+ ((boxes_2_xyxy[:, 2] - boxes_2_xyxy[:, 0]) > 0).all()+ and ((boxes_2_xyxy[:, 3] - boxes_2_xyxy[:, 1]) > 0).all()+ ):+ raise AssertionError("Boxes_2 contains invalid boxes after conversion.")# Find intersectionlower_bounds = torch.max(boxes_1_xyxy[:, :2].unsqueeze(1), boxes_2_xyxy[:, :2].unsqueeze(0)) # (n1, n2, 2)diff --git a/pyproject.toml b/pyproject.tomlindex d0e8f90b3..9d05eaf32 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -317,6 +317,14 @@ max-statements = 64 # Recommended: 50"D",] # allow assert, ignore max branches and statements"docs/generate_examples.py" = ["C901"] # Allow too complex function+"docs/export_support/*" = [+ "BLE",+ "E741",+ "PLC3002",+ "PLR0911",+ "S603",+ "S607",+] # survey harness: subprocess workers, inline lambdas that build case inputs"kornia/__init__.py" = ["I001"] # Allow unsorted imports"kornia/feature/dedode/*" = ["C408",diff --git a/testing/known_failure_xfails/mps_float32.txt b/testing/known_failure_xfails/mps_float32.txtindex bf8e541db..e46f2b1a2 100644--- a/testing/known_failure_xfails/mps_float32.txt+++ b/testing/known_failure_xfails/mps_float32.txt@@ -192,10 +192,6 @@ AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::testAssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_log_quaternion[mps-float32-0-y]AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_log_quaternion[mps-float32-0-z]NotImplementedError tests/integration/test_warp.py::TestWarping::test_smoke[mps]-NotImplementedError tests/losses/test_hd.py::TestHausdorffLoss::test_numeric_3d[mps-float32]-NotImplementedError tests/losses/test_hd.py::TestHausdorffLoss::test_smoke_none[mps-float32-HausdorffERLoss3D-shape1-mean]-NotImplementedError tests/losses/test_hd.py::TestHausdorffLoss::test_smoke_none[mps-float32-HausdorffERLoss3D-shape1-none]-NotImplementedError tests/losses/test_hd.py::TestHausdorffLoss::test_smoke_none[mps-float32-HausdorffERLoss3D-shape1-sum]AssertionError tests/losses/test_ssim.py::TestSSIM3DLoss::test_ssim[mps-float32-shape0-sum-11]AssertionError tests/losses/test_ssim.py::TestSSIM3DLoss::test_ssim[mps-float32-shape0-sum-5]AssertionError tests/losses/test_ssim.py::TestSSIM3DLoss::test_ssim[mps-float32-shape1-sum-11]diff --git a/tests/core/test_helpers.py b/tests/core/test_helpers.pyindex 91528d8ff..21ccba425 100644--- a/tests/core/test_helpers.py+++ b/tests/core/test_helpers.py@@ -20,11 +20,14 @@ import torchfrom kornia.core.exceptions import DeviceErrorfrom kornia.core.utils import (+ _adjugate_closed_form,_extract_device_dtype,_torch_histc_cast,_torch_inverse_cast,_torch_solve_cast,_torch_svd_cast,+ is_exporting,+ register_module_state,safe_inverse_with_mask,safe_solve_with_mask,)@@ -100,6 +103,90 @@ class TestInverseCast:x = torch.tensor([[0.0, 0.0], [0.0, 0.0]], device=device, dtype=dtype)_ = _torch_inverse_cast(x)+ @pytest.mark.parametrize("n", [2, 3, 4])+ def test_closed_form_matches_linalg_inv(self, device, dtype, n):+ # The adjugate formula is what graph capture (trace / dynamo ONNX export) uses in place of+ # ``aten::linalg_inv``; it has to agree with the eager path on well-conditioned input.+ torch.manual_seed(0)+ x = torch.eye(n, device=device, dtype=dtype).expand(2, 3, n, n).clone()+ x.add_(torch.rand_like(x), alpha=0.5)+ adj, det = _adjugate_closed_form(x)+ assert adj.shape == x.shape+ assert det.shape == x.shape[:-2]+ tol = 1e-2 if dtype in (torch.float16, torch.bfloat16) else 1e-4+ x_ref = x.to(torch.float32) if dtype in (torch.float16, torch.bfloat16) else x+ assert_close(adj / det[..., None, None], torch.linalg.inv(x_ref).to(dtype), atol=tol, rtol=tol)+ assert_close(det, torch.linalg.det(x_ref).to(dtype), atol=tol, rtol=tol)++ @pytest.mark.parametrize("n", [2, 3, 4])+ def test_trace_has_no_linalg_inv(self, device, dtype, n):+ if dtype in (torch.float16, torch.bfloat16):+ pytest.skip("tracing under half precision is not a supported surface")+ x = torch.eye(n, device=device, dtype=dtype).expand(2, n, n).clone()+ x.add_(torch.rand_like(x), alpha=0.5)+ traced = torch.jit.trace(_torch_inverse_cast, x)+ assert "linalg_inv" not in str(traced.graph)+ assert_close(traced(x), _torch_inverse_cast(x))++ def test_closed_form_rejects_other_shapes(self, device, dtype):+ with pytest.raises(NotImplementedError):+ _adjugate_closed_form(torch.eye(5, device=device, dtype=dtype))+++class TestExportHelpers:+ def test_is_exporting_eager(self):+ assert is_exporting() is False++ def test_is_exporting_scripted(self):+ # The guard is called from TorchScript-compiled functions (matching, calibration); it+ # must compile and evaluate to False there rather than being an unused stub that raises.+ assert torch.jit.script(is_exporting)() is False++ def test_is_exporting_falls_back_to_is_compiling(self, monkeypatch):+ # torch < 2.6 has no ``torch.compiler.is_exporting``; inside a Dynamo trace the guard must+ # still be true, as it is on newer torch where Dynamo folds the flag to True for+ # ``torch.compile`` as well.+ from kornia.core import utils++ monkeypatch.setattr(utils, "_torch_is_exporting", None)+ assert is_exporting() is False+ seen = []++ def fn(x):+ seen.append(is_exporting())+ return x + 1++ try:+ torch.compile(fn, backend="eager")(torch.zeros(2))+ except RuntimeError as e: # e.g. "Dynamo is not supported on Python 3.13+" on torch 2.5+ pytest.skip(f"no Dynamo here: {e}")+ assert seen == [True]++ def test_register_module_state_wraps_leaf(self, device, dtype):+ m = torch.nn.Module()+ x = torch.rand(3, device=device, dtype=dtype)+ register_module_state(m, "x", x)+ assert isinstance(m.x, torch.nn.Parameter)+ assert dict(m.named_parameters()).keys() == {"x"}+ p = torch.nn.Parameter(x.clone())+ register_module_state(m, "p", p)+ assert m.p is p++ def test_register_module_state_keeps_history(self, device, dtype):+ # A tensor with a grad_fn must not be re-rooted as a leaf, or gradients stop at it; it is+ # a buffer instead so ``.to()`` and ``state_dict()`` still reach it.+ m = torch.nn.Module()+ v = torch.rand(3, device=device, dtype=dtype, requires_grad=True)+ register_module_state(m, "y", v * 2)+ assert not isinstance(m.y, torch.nn.Parameter)+ assert dict(m.named_buffers()).keys() == {"y"}+ assert list(m.state_dict()) == ["y"]+ other = torch.float16 if dtype == torch.float32 else torch.float32 # float64 is unavailable on MPS+ moved = m.to(other)+ assert moved.y.dtype == other+ moved.y.sum().backward()+ assert_close(v.grad, torch.full_like(v, 2.0))+class TestHistcCast:def test_smoke(self, device, dtype):diff --git a/tests/geometry/liegroup/test_se2.py b/tests/geometry/liegroup/test_se2.pyindex a15a382f8..b031077bd 100644--- a/tests/geometry/liegroup/test_se2.py+++ b/tests/geometry/liegroup/test_se2.py@@ -285,3 +285,21 @@ class TestSe2(BaseTester):y = Se2.random(batch_size)self.assert_close(x.inverse().adjoint(), x.adjoint().inverse())self.assert_close((x * y).adjoint(), x.adjoint() @ y.adjoint())++ def test_derived_state_moves_and_serializes(self, device, dtype):+ # A group built from a tensor with autograd history keeps that history; its state must+ # still be registered so ``state_dict`` and ``.to()`` / ``.double()`` reach it.+ v = torch.rand(2, 3, device=device, dtype=dtype, requires_grad=True)+ s = Se2.exp(v)+ assert s.t.grad_fn is not None and s.so2.z.grad_fn is not None+ assert set(s.state_dict()) == {"_translation", "_rotation._z"}+ restored = Se2(So2.identity(2, device, dtype), torch.zeros(2, 2, device=device, dtype=dtype))+ restored.load_state_dict(s.state_dict())+ self.assert_close(restored.matrix(), s.matrix().detach())+ # ``.half()`` / ``.float()`` convert the floating buffers in place and keep the graph+ # (float64 is unavailable on MPS, so convert towards float16 from float32)+ converted = s.half() if dtype == torch.float32 else s.float()+ assert converted.t.dtype == (torch.float16 if dtype == torch.float32 else torch.float32)+ assert converted.t.grad_fn is not None+ converted.t.sum().backward()+ assert v.grad is not Nonediff --git a/tests/geometry/liegroup/test_se3.py b/tests/geometry/liegroup/test_se3.pyindex 908eb121d..852d391f8 100644--- a/tests/geometry/liegroup/test_se3.py+++ b/tests/geometry/liegroup/test_se3.py@@ -311,3 +311,18 @@ class TestSe3(BaseTester):i = Se3.identity(batch_size=batch_size, device=device, dtype=dtype)self.assert_close(s_in_s.so3.q.data, i.so3.q.data)self.assert_close(s_in_s.t, i.t)++ def test_derived_state_moves_and_serializes(self, device, dtype):+ v = torch.rand(2, 6, device=device, dtype=dtype, requires_grad=True)+ s = Se3.exp(v)+ assert s.t.grad_fn is not None+ assert "_translation" in s.state_dict()+ restored = Se3(So3.identity(2, device, dtype), torch.zeros(2, 3, device=device, dtype=dtype))+ assert list(restored.state_dict()) == list(s.state_dict()) == ["_translation"]+ restored.load_state_dict(s.state_dict())+ self.assert_close(restored.t, s.t.detach())+ other = torch.float16 if dtype == torch.float32 else torch.float32 # float64 is unavailable on MPS+ moved = s.to(other)+ assert moved.t.dtype == other and moved.t.grad_fn is not None+ moved.t.sum().backward()+ assert v.grad is not Nonediff --git a/tests/geometry/liegroup/test_so2.py b/tests/geometry/liegroup/test_so2.pyindex 2fcb8699c..c3546b18b 100644--- a/tests/geometry/liegroup/test_so2.py+++ b/tests/geometry/liegroup/test_so2.py@@ -239,3 +239,15 @@ class TestSo2(BaseTester):def test_adjoint(self, device, dtype, batch_size):s = So2.identity(batch_size, device=device, dtype=dtype)self.assert_close(s.matrix(), s.adjoint())++ def test_derived_state_moves_and_serializes(self, device, dtype):+ theta = torch.rand(2, device=device, dtype=dtype, requires_grad=True)+ s = So2.exp(theta)+ assert s.z.grad_fn is not None+ assert list(s.state_dict()) == ["_z"] == list(So2.identity(2, device, dtype).state_dict())+ assert dict(s.named_buffers()).keys() == {"_z"} # registered, so ``.to(device)`` reaches it+ restored = So2.identity(2, device, dtype)+ restored.load_state_dict(s.state_dict())+ self.assert_close(restored.matrix(), s.matrix().detach())+ s.to(device).matrix().sum().backward()+ assert theta.grad is not Nonediff --git a/tests/geometry/test_line.py b/tests/geometry/test_line.pyindex 971a645b9..e2d84e20c 100644--- a/tests/geometry/test_line.py+++ b/tests/geometry/test_line.py@@ -146,6 +146,23 @@ class TestParametrizedLine(BaseTester):def test_gradcheck(self, device):pass+ def test_derived_state_moves_and_serializes(self, device, dtype):+ p0 = torch.rand(2, device=device, dtype=dtype, requires_grad=True)+ p1 = torch.rand(2, device=device, dtype=dtype, requires_grad=True)+ line = ParametrizedLine.through(p0, p1)+ assert line.direction.grad_fn is not None+ assert list(line.state_dict()) == ["_origin", "_direction"]+ origin = torch.zeros(2, device=device, dtype=dtype)+ restored = ParametrizedLine(origin, torch.ones(2, device=device, dtype=dtype))+ restored.load_state_dict(line.state_dict())+ self.assert_close(restored.direction, line.direction.detach())+ other = torch.float16 if dtype == torch.float32 else torch.float32 # float64 is unavailable on MPS+ moved = line.to(other)+ assert moved.origin.dtype == other and moved.direction.dtype == other+ assert moved.direction.grad_fn is not None+ moved.direction.sum().backward()+ assert p1.grad is not None+class TestFitLine(BaseTester):@pytest.mark.parametrize("B", (1, 2))diff --git a/tests/onnx/test_export_coverage.py b/tests/onnx/test_export_coverage.pynew file mode 100644index 000000000..5fff4a0d2--- /dev/null+++ b/tests/onnx/test_export_coverage.py@@ -0,0 +1,135 @@+# LICENSE HEADER MANAGED BY add-license-header+#+# Copyright 2018 Kornia Team+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+#++"""Dynamo ONNX export smoke tests for operators whose graph capture needed an export-time path.++Each case pins one lowering fix (closed-form inverse, ``sort`` instead of ``median.dim``, ``amax``+instead of ``AdaptiveMaxPool``, branch-free ``where`` selection, ...). The exported graph is run+under onnxruntime and compared with eager execution.+"""++import io++import numpy as np+import pytest+import torch+from torch import nn++import kornia+from kornia.core.utils import _torch_inverse_cast+from kornia.geometry.epipolar.numeric import matrix_cofactor_tensor++onnx = pytest.importorskip("onnx")+ort = pytest.importorskip("onnxruntime")++if not hasattr(torch.onnx, "ONNXProgram"):+ # ``torch.onnx.export(..., dynamo=True)`` and the ``ONNXProgram`` it returns (with ``.save()``)+ # arrived together in torch 2.5; older releases only have the TorchScript exporter.+ pytest.skip("the dynamo ONNX exporter needs torch >= 2.5", allow_module_level=True)+++class _Fn(nn.Module):+ def __init__(self, fn, **kwargs):+ super().__init__()+ self.fn = fn+ self.kwargs = kwargs++ def forward(self, *args):+ return self.fn(*args, **self.kwargs)+++def _export_and_run(module: nn.Module, inputs: tuple[torch.Tensor, ...]) -> tuple[list, list]:+ module.eval()+ with torch.no_grad():+ eager = module(*inputs)+ eager = list(eager) if isinstance(eager, (tuple, list)) else [eager]++ buf = io.BytesIO()+ with torch.no_grad():+ program = torch.onnx.export(module, inputs, dynamo=True, opset_version=18, verbose=False)+ program.save(buf)+ model = onnx.load_from_string(buf.getvalue())+ onnx.checker.check_model(model)++ session = ort.InferenceSession(buf.getvalue(), providers=["CPUExecutionProvider"])+ feeds = {inp.name: x.numpy() for inp, x in zip(session.get_inputs(), inputs)}+ return eager, session.run(None, feeds)+++def _assert_same(eager, ort_out, rtol=1e-4, atol=1e-4):+ assert len(eager) == len(ort_out)+ for e, o in zip(eager, ort_out):+ np.testing.assert_allclose(e.numpy(), o, rtol=rtol, atol=atol)+++def _cases():+ torch.manual_seed(0)+ img = torch.rand(1, 3, 16, 16)+ gray = torch.rand(2, 1, 12, 12)+ return [+ pytest.param(+ _Fn(_torch_inverse_cast), (torch.eye(4).expand(2, 4, 4) + 0.1 * torch.rand(2, 4, 4),), id="inv4x4"+ ),+ pytest.param(+ _Fn(kornia.geometry.transform.warp_perspective, dsize=(16, 16), align_corners=True),+ (img, torch.eye(3)[None] + 0.01 * torch.rand(1, 3, 3)),+ id="warp_perspective",+ ),+ pytest.param(kornia.filters.MedianBlur((3, 3)), (img,), id="MedianBlur"),+ pytest.param(_Fn(kornia.contrib.distance_transform), ((gray > 0.7).float(),), id="distance_transform"),+ pytest.param(+ kornia.losses.HausdorffERLoss(),+ (torch.rand(2, 3, 12, 12), torch.randint(0, 3, (2, 1, 12, 12))),+ id="hausdorff",+ ),+ pytest.param(_Fn(kornia.feature.match_nn), (torch.rand(8, 32), torch.rand(10, 32)), id="match_nn"),+ pytest.param(+ _Fn(kornia.geometry.solvers.solve_quadratic),+ (torch.tensor([[1.0, -3.0, 2.0], [1.0, 2.0, 1.0], [1.0, 0.0, 1.0]]),),+ id="solve_quadratic",+ ),+ pytest.param(_Fn(matrix_cofactor_tensor), (torch.rand(2, 3, 3),), id="cofactor"),+ pytest.param(+ _Fn(kornia.enhance.normalize),+ (img, torch.tensor([0.4, 0.5, 0.6]), torch.tensor([0.2, 0.2, 0.3])),+ id="normalize",+ ),+ pytest.param(kornia.augmentation.LongestMaxSize(24), (img,), id="LongestMaxSize"),+ pytest.param(+ _Fn(kornia.geometry.calibration.distort_points),+ (torch.rand(1, 5, 2) * 8, torch.eye(3)[None] * 4, torch.rand(1, 5) * 0.1),+ id="distort_points",+ ),+ pytest.param(_Fn(lambda v: kornia.geometry.liegroup.Se3.exp(v).matrix()), (torch.rand(2, 6),), id="Se3.exp"),+ ]++[email protected]("module,inputs", _cases())+def test_onnx_export_matches_eager(module, inputs):+ eager, ort_out = _export_and_run(module, inputs)+ _assert_same(eager, ort_out)+++def test_boxes_to_mask_export():+ boxes = kornia.geometry.boxes.Boxes(torch.tensor([[[[1.0, 1.0], [5.0, 1.0], [5.0, 4.0], [1.0, 4.0]]]]))++ class M(nn.Module):+ def forward(self, quads):+ return kornia.geometry.boxes.Boxes(quads).to_mask(8, 8)++ eager, ort_out = _export_and_run(M(), (boxes.data,))+ _assert_same(eager, ort_out)