π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
Add Linux CPU half-precision CI coverage (#4154)
Dmytro Mishkin21530696d8d8
diff --git a/.github/workflows/pr_test_cpu.yml b/.github/workflows/pr_test_cpu.ymlindex 71548e90f..7488ee20a 100644--- a/.github/workflows/pr_test_cpu.yml+++ b/.github/workflows/pr_test_cpu.yml@@ -134,6 +134,25 @@ jobs:model-weights-${{ needs.pre-tests.outputs.hash }}model-weights-+ half-precision:+ needs: [pre-tests]+ strategy:+ fail-fast: false+ matrix:+ pytorch-dtype: ["float16", "bfloat16"]+ uses: ./.github/workflows/tests.yml+ with:+ os: ubuntu-latest+ python-version: '["3.11"]'+ pytorch-version: '["2.9.1"]'+ pytorch-dtype: ${{ matrix.pytorch-dtype }}+ known-failure-profile: cpu-${{ matrix.pytorch-dtype }}+ cache-path: weights/+ cache-key: model-weights-${{ needs.pre-tests.outputs.hash }}+ cache-restore-keys: |+ model-weights-${{ needs.pre-tests.outputs.hash }}+ model-weights-+# Runs only the torch.compile / dynamo tests under the inductor backend, which the main# `tests` matrix deselects (KORNIA_TEST_OPTIMIZER=""). Keeps the compile-clean core a# defended floor at PR time. Scoped to a single config and `-k dynamo or compile` so the@@ -183,7 +202,7 @@ jobs:uses: ./.github/workflows/tutorials.ymlcollector:- needs: [changes, pre-tests, tests, tests-mps, dynamo, typecheck]+ needs: [changes, pre-tests, tests, tests-mps, half-precision, dynamo, typecheck]if: always()runs-on: ubuntu-lateststeps:diff --git a/.github/workflows/scheduled_test_cpu.yml b/.github/workflows/scheduled_test_cpu.ymlindex f29603add..502f84ae4 100644--- a/.github/workflows/scheduled_test_cpu.yml+++ b/.github/workflows/scheduled_test_cpu.yml@@ -131,6 +131,26 @@ jobs:model-weights-${{ needs.pre-tests.outputs.hash }}model-weights-+ tests-cpu-half-precision:+ needs: [check-skip, pre-tests]+ if: needs.check-skip.outputs.should-skip == 'false'+ strategy:+ fail-fast: false+ matrix:+ pytorch-dtype: ["float16", "bfloat16"]+ uses: ./.github/workflows/tests.yml+ with:+ os: ubuntu-latest+ python-version: '["3.11"]'+ pytorch-version: '["2.9.1"]'+ pytorch-dtype: ${{ matrix.pytorch-dtype }}+ known-failure-profile: cpu-${{ matrix.pytorch-dtype }}+ cache-path: weights/+ cache-key: model-weights-${{ needs.pre-tests.outputs.hash }}+ cache-restore-keys: |+ model-weights-${{ needs.pre-tests.outputs.hash }}+ model-weights-+tests-cpu-windows:needs: [check-skip, pre-tests]if: needs.check-skip.outputs.should-skip == 'false'diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.ymlindex bf7d1d160..894451f47 100644--- a/.github/workflows/tests.yml+++ b/.github/workflows/tests.yml@@ -28,6 +28,10 @@ on:required: falsetype: stringdefault: ""+ known-failure-profile:+ required: false+ type: string+ default: ""optimizer:required: falsetype: string@@ -139,8 +143,15 @@ jobs:KORNIA_TEST_DTYPE: ${{ inputs.pytorch-dtype }}KORNIA_TEST_RUNSLOW: ${{ inputs.runslow }}KORNIA_TEST_OPTIMIZER: ${{ inputs.optimizer }}+ KNOWN_FAILURE_PROFILE: ${{ inputs.known-failure-profile }}KORNIA_CI_PYTEST_VERBOSITY: ${{ runner.os == 'Windows' && '-v' || '' }}MKL_NUM_THREADS: "1"OMP_NUM_THREADS: "1"UV_NO_SYNC: "1"- run: pixi run -e ${{ steps.pixi-env.outputs.name }} test $KORNIA_CI_PYTEST_VERBOSITY ${{ inputs.pytest-extra }}+ run: |+ known_failure_args=()+ if [[ -n "$KNOWN_FAILURE_PROFILE" ]]; then+ known_failure_args+=(--verify-known-failures "--known-failure-profile=$KNOWN_FAILURE_PROFILE")+ fi+ pixi run -e ${{ steps.pixi-env.outputs.name }} test \+ $KORNIA_CI_PYTEST_VERBOSITY "${known_failure_args[@]}" ${{ inputs.pytest-extra }}diff --git a/AGENTS.md b/AGENTS.mdindex b0b347fc8..eb5087543 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -88,6 +88,13 @@ when more than one virtualenv is in play: name the interpreter explicitly rather### Precision and device details- For focused CPU half-precision coverage, add `--dtype=float16,bfloat16` to a `test-module` run. `pixi run test-half` runs the whole CPU test suite.+- The blocking Linux CPU half jobs run one dtype at a time with `--verify-known-failures` and an explicit+ `--known-failure-profile=cpu-float16` or `cpu-bfloat16`, with no optimizer or `--runslow`. Focused file, node, and+ `-k` runs use `--xfail-known-failures` with the same profile. Profile selection happens before parametrization and+ deterministically isolates each node's RNG. Delete a manifest line after a fix, update it after a rename or+ reparametrization, and fix or deliberately document a new failure. `pixi run test-half` is unseeded; a failure seen+ only there is a test-determinism bug, not a manifest update. See [TESTING.md](TESTING.md) for guarded candidate+ recording, fresh-process replay, and manual installation.- CUDA `float16`/`bfloat16` tests need per-test subprocess isolation; use `pixi run -e cuda test-cuda-half` or pytest's `--isolate-half-precision` option.- MPS does not support float64 gradcheck. MPS autocast can also change the effective dtype; inspect nearby tests before changing tolerances or skips.- The blocking MPS job runs `--device=mps --dtype=float32 --xfail-known-failures`. Its exact strict-xfail baseline is `testing/known_failure_xfails/mps_float32.txt` and is tracked in #4159. A fix removes its manifest line; a rename or reparametrization updates the node ID; a new failure is fixed or explicitly documented before being added. The manifest contract requires a full-suite run, without `-k` or a partial path.diff --git a/CHANGELOG.md b/CHANGELOG.mdindex cfd33906f..0af33b6f1 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0### Added+* Linux CPU half-precision CI now uses explicit reproducible profiles, exact phase/exception manifests, complete+ lifecycle verification, and guarded candidate-only baseline regeneration. (#4154)* The documentation site was rebuilt on `pydata-sphinx-theme` with a top navigation bar(Learn / API / Models plus Ecosystem, About and Support menus), a redesigned landing page, arestructured API reference with per-topic subpages, and a long list of fixed doc examples and@@ -188,6 +190,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0### Bug fixes+* `add_weighted` now keeps Python scalar weights in operator math precision instead of rounding them to the input+ dtype before arithmetic. This improves `float16` and `bfloat16` accuracy and makes fractional scalar weights on+ integer inputs produce the correctly promoted floating-point result instead of being truncated. (#4154)+* `distance_transform` no longer silently returns a wrong or all-zero result when its `exp(-dist/h)` kernelunderflows (#4152). The kernel's axis-aligned tap, at distance `kernel_size // 2` along a single axis,underflowing to exactly zero -- reachable from the documented default `h=0.35` at `kernel_size >= 15` indiff --git a/README.md b/README.mdindex f76f4842c..c8415a072 100644--- a/README.md+++ b/README.md@@ -112,8 +112,9 @@ Leverage pre-trained AI models optimized for a variety of vision tasks, all withReproduce the two CPU half rows with `pixi run test-half` and the CPU float32 baseline with `pixi run test-f32`(`test-half` pins `KORNIA_TEST_DTYPE` to `float16,bfloat16`, so it cannot produce the baseline). The half-precision-suite is not run in CI (see [#4070](https://github.com/kornia/kornia/issues/4070)), so these numbers are refreshed-by hand.+CPU suites run as separate blocking `float16` and `bfloat16` CI jobs with strict manifests for known failures,+addressing [#4070](https://github.com/kornia/kornia/issues/4070). The historical support-table counts are still+refreshed by hand with the commands above.See the [full precision guide](https://kornia.readthedocs.io/en/stable/get-started/precision.html) for details.diff --git a/TESTING.md b/TESTING.mdindex 442a0f3c4..622c37923 100644--- a/TESTING.md+++ b/TESTING.md@@ -36,6 +36,11 @@ pixi run test-quick| `--tf32` | `KORNIA_TEST_TF32` | off | Enable TF32 mode (see below) || `--optimizer` | `KORNIA_TEST_OPTIMIZER` | CLI: `inductor`; env: unset | Select the backend. Only setting the environment variable enables dynamo/compile collection; the CLI option alone does not. || `--isolate-half-precision` | `KORNIA_TEST_ISOLATE_HALF` | off | Run float16/bfloat16 CUDA tests each in a fresh `subprocess.run` process (no shared CUDA state) |+| `--known-failure-profile=NAME` | none | unset | Select an explicit reproducible profile such as `cpu-float16` |+| `--xfail-known-failures` | none | off | Focus mode: validate selected entries from the chosen profile; without a profile, use the device/dtype known-failure manifest |+| `--verify-known-failures` | none | off | Complete mode: require the full chosen profile and every manifest entry to reproduce exactly |+| `--record-known-failures=PATH` | none | unset | Record a complete profile to a guarded, untracked candidate path |+| `--known-failure-manifest=PATH` | none | unset | Replay a candidate manifest instead of the checked-in profile manifest || `--run-device-agnostic` | `KORNIA_TEST_RUN_DEVICE_AGNOSTIC` | off | Run `@pytest.mark.device_agnostic` tests even when CPU is not in the device matrix |## Test Structure@@ -229,6 +234,56 @@ pixi run -e cuda test-cuda-half # float16 + bfloat16, CUDA, with isolationWithout `--isolate-half-precision`, float16/bfloat16 CUDA tests are **skipped** (safe default for combined runs).+**Linux CPU half-precision CI baseline.** Pull requests and scheduled CI run the complete `cpu-float16` and+`cpu-bfloat16` profiles on Linux, Python 3.11, and the workflow-pinned PyTorch release. Selecting a profile sets+the device and dtype before parametrization, then gives each node an isolated, stable Python/NumPy/PyTorch seed.+Manifest entries store an exact setup/call phase, opaque fully qualified exception identity, and node ID. The v1+header enforces the profile, Python major/minor, PyTorch release, OS, architecture, and seed scheme; pytest, NumPy,+and Pillow versions are recorded as provenance warnings.++Focus mode accepts file, node, and `-k` selections and validates only selected manifest entries:++```bash+KORNIA_TEST_OPTIMIZER= pixi run test-module tests/geometry/liegroup/test_so3.py \+ --xfail-known-failures --known-failure-profile=cpu-float16+```++Complete mode is the blocking CI contract. It requires the canonical full `tests/` collection with no partial+selector, optimizer, slow suite, xdist, early-stop, last-failed, failed-first, or collect-only option:++```bash+KORNIA_TEST_OPTIMIZER= pixi run test-module tests/ \+ --verify-known-failures --known-failure-profile=cpu-float16+```++A recorded entry must reproduce with the same phase and exception identity. A pass, skip, competing xfail, changed+exception, teardown failure, or stale node ID makes verification red. Delete a line after a fix, update its node ID+after a rename/reparametrization, and prefer fixing a new failure. The tracker prints an exact ready-to-paste line+when a deliberate addition is justified.++Normal pull requests do not regenerate manifests. For an initial profile, supported-environment update, or deliberate+broad re-baseline, record only to an untracked candidate outside the repository, then replay it in a fresh process:++```bash+KORNIA_TEST_OPTIMIZER= pixi run test-module tests/ \+ --record-known-failures=/tmp/kornia-cpu-float16-candidate.txt \+ --known-failure-profile=cpu-float16++KORNIA_TEST_OPTIMIZER= pixi run test-module tests/ \+ --verify-known-failures --known-failure-profile=cpu-float16 \+ --known-failure-manifest=/tmp/kornia-cpu-float16-candidate.txt+```++The recording run exits nonzero because failures remain un-xfailed, but writes a candidate only after complete+collection and lifecycle accounting. It refuses checked-in/tracked destinations (including symlink aliases), partial+runs, unrepresentable candidate failures, and audited nodes that consume eager fixture RNG. Review every candidate+delta and the replay result before manually replacing the checked-in manifest. The same commands with+`cpu-bfloat16` and a distinct `/tmp` path handle bfloat16.++`pixi run test-half` remains the ordinary unseeded CPU sweep; it is useful for finding tests that accidentally depend+on shared RNG state. A failure seen only there is a test-determinism bug to fix, never a reason to edit the seeded+profile manifest.+**See also.** `docs/source/get-started/precision.rst` for the per-module half-precision support table.### 8. MPS (Apple Silicon) Limitationsdiff --git a/conftest.py b/conftest.pyindex fe8fee804..37cc9d1d4 100644--- a/conftest.py+++ b/conftest.py@@ -16,11 +16,14 @@#import os+import randomimport subprocessimport sysimport time+from contextlib import contextmanagerfrom functools import partialfrom itertools import product+from pathlib import Pathimport numpy as npimport pytest@@ -34,6 +37,13 @@ except ImportError: # pragma: no coverimport korniafrom testing.doctest_downloads import DOWNLOAD_ENV_VAR, downloads_allowed, install_download_guard, skip_reason+from testing.half_precision_ci import (+ FailureRecorder,+ KnownFailureTracker,+ ManifestProfile,+ get_profile,+ seed_test_rng,+)from testing.known_failures import mark_known_failurestry:@@ -137,6 +147,124 @@ def _parse_test_option(config, option: str, all_values: dict | set) -> list[str]return raw_value.split(",")+def _explicit_option_value(args: tuple[str, ...], option: str) -> str | None:+ """Return an explicitly supplied pytest option value, if present."""+ for index, argument in enumerate(args):+ if argument.startswith(f"{option}="):+ return argument.partition("=")[2]+ if argument == option and index + 1 < len(args):+ return args[index + 1]+ return None+++def _configure_known_failure_profile(config) -> ManifestProfile | None:+ """Resolve and apply a CPU-half profile before pytest generates parameter IDs."""+ profile_name = config.getoption("--known-failure-profile")+ verify = config.getoption("--verify-known-failures")+ record = config.getoption("--record-known-failures")+ if profile_name is None:+ if verify or record:+ raise pytest.UsageError("selected complete mode requires --known-failure-profile")+ return None++ try:+ profile = get_profile(profile_name)+ except ValueError as error:+ raise pytest.UsageError(str(error)) from error++ args = tuple(config.invocation_params.args)+ required = {"device": "cpu", "dtype": profile.dtype}+ for name, expected in required.items():+ option = f"--{name}"+ environment_name = f"KORNIA_TEST_{name.upper()}"+ explicit = _explicit_option_value(args, option)+ if explicit is None:+ explicit = os.environ.get(environment_name)+ if explicit is not None and explicit != expected:+ raise pytest.UsageError(+ f"explicit {name}={explicit} conflicts with profile {profile.name}, which requires {name}={expected}"+ )+ setattr(config.option, name, expected)+ return profile+++def _validate_complete_known_failure_run(config, option: str) -> None:+ normalized_args = set()+ for arg in config.args:+ target = Path(arg.split("::", maxsplit=1)[0])+ if target.is_absolute():+ try:+ target = target.relative_to(config.rootpath)+ except ValueError:+ pass+ normalized_args.add(target.as_posix().removeprefix("./").rstrip("/"))+ if normalized_args != {"tests"}:+ raise pytest.UsageError(f"{option} requires exactly the full tests/ target")++ partial_options = {+ "-k": config.option.keyword,+ "-m": config.option.markexpr,+ "--deselect": config.option.deselect,+ "--maxfail/-x": config.option.maxfail,+ "--lf": getattr(config.option, "lf", None),+ "--ff": getattr(config.option, "failedfirst", None),+ "--collect-only": config.option.collectonly,+ "--ignore": getattr(config.option, "ignore", None),+ "--ignore-glob": getattr(config.option, "ignore_glob", None),+ "xdist": getattr(config.option, "numprocesses", None),+ "-p": getattr(config.option, "plugins", None),+ }+ active = [name for name, value in partial_options.items() if value]+ if active:+ raise pytest.UsageError(f"{option} does not allow partial-selection options; remove: {', '.join(active)}")+++def pytest_configure(config) -> None:+ """Apply known-failure profiles before pytest_generate_tests reads device and dtype."""+ profile = _configure_known_failure_profile(config)+ config._known_failure_profile = profile+ if profile is None:+ return++ focus = config.getoption("--xfail-known-failures")+ verify = config.getoption("--verify-known-failures")+ record = config.getoption("--record-known-failures")+ if sum((bool(focus), bool(verify), bool(record))) != 1:+ raise pytest.UsageError(+ "a CPU-half profile requires exactly one of --xfail-known-failures, "+ "--verify-known-failures, or --record-known-failures"+ )+ if os.environ.get("KORNIA_TEST_OPTIMIZER", "").strip() or config.getoption("--runslow"):+ raise pytest.UsageError("CPU-half profiles require KORNIA_TEST_OPTIMIZER to be unset and --runslow disabled")+ if getattr(config.option, "numprocesses", None):+ raise pytest.UsageError("CPU-half profiles do not support xdist")++ if verify or record:+ _validate_complete_known_failure_run(config, "--verify-known-failures" if verify else "--record-known-failures")+ manifest_override = config.getoption("--known-failure-manifest")+ if record and manifest_override:+ raise pytest.UsageError("--known-failure-manifest is a replay override and cannot be used while recording")+ if focus or verify:+ manifest_path = Path(manifest_override) if manifest_override else profile.manifest_path+ try:+ tracker = KnownFailureTracker(+ profile,+ manifest_path,+ mode="complete" if verify else "focus",+ selectors=() if verify else config.args,+ rootpath=config.rootpath,+ )+ except (OSError, ValueError) as error:+ raise pytest.UsageError(str(error)) from error+ config.pluginmanager.register(tracker, "known-half-precision-failure-tracker")+ else:+ try:+ recorder = FailureRecorder(profile, Path(record), rootpath=config.rootpath)+ except (OSError, ValueError) as error:+ raise pytest.UsageError(str(error)) from error+ config.pluginmanager.register(recorder, "half-precision-failure-recorder")++def pytest_generate_tests(metafunc) -> None:"""Generate test parametrization based on fixtures and CLI options."""# Build list of (fixture_name, values) for fixtures that are used@@ -197,7 +325,7 @@ def pytest_collection_modifyitems(config, items):# Filter out tests with "dynamo" or "compile" in their nameitems[:] = [item for item in items if "dynamo" not in item.name.lower() and "compile" not in item.name.lower()]- if config.getoption("--xfail-known-failures"):+ if config.getoption("--xfail-known-failures") and getattr(config, "_known_failure_profile", None) is None:devices = _parse_test_option(config, "--device", TEST_DEVICES)dtypes = _parse_test_option(config, "--dtype", TEST_DTYPES)if len(devices) != 1 or len(dtypes) != 1:@@ -264,6 +392,28 @@ def pytest_addoption(parser):KORNIA_TEST_TF32: Enable TF32 (TensorFloat-32) mode for CUDA matrix multiplications (default: false)KORNIA_DOCTEST_DOWNLOAD: Let doctests download model weights (default: false)"""+ parser.addoption(+ "--known-failure-profile",+ action="store",+ help="Select an explicit known-failure profile such as cpu-float16.",+ )+ parser.addoption(+ "--verify-known-failures",+ action="store_true",+ help="Run the complete blocking known-failure verification for the selected profile.",+ )+ parser.addoption(+ "--record-known-failures",+ action="store",+ metavar="PATH",+ help="Record a complete known-failure candidate at a guarded, untracked PATH.",+ )+ parser.addoption(+ "--known-failure-manifest",+ action="store",+ metavar="PATH",+ help="Override the selected profile manifest for candidate replay.",+ )parser.addoption("--device",action="store",@@ -627,6 +777,39 @@ def pytest_runtest_protocol(item, nextitem):return True+@contextmanager+def _isolated_test_rng(seed: int):+ """Temporarily seed the process-global CPU RNGs and restore their exact states."""+ python_state = random.getstate()+ numpy_state = np.random.get_state() # noqa: NPY002 - snapshot the process-global RNG used by existing tests.+ torch_state = torch.random.get_rng_state()+ try:+ random.seed(seed)+ np.random.seed(seed) # noqa: NPY002 - the test suite uses NumPy's process-global RNG.+ torch.random.default_generator.manual_seed(seed)+ yield+ finally:+ random.setstate(python_state)+ np.random.set_state(numpy_state) # noqa: NPY002 - restore the process-global RNG exactly.+ torch.random.set_rng_state(torch_state)+++def test_rng_seed(request) -> int:+ """Return the stable seed for this pytest node without changing global RNG state."""+ return seed_test_rng(request.node.nodeid)++[email protected](autouse=True)+def seed_half_precision_manifest_run(request, test_rng_seed: int):+ """Isolate RNG state for explicit CPU-half known-failure profile runs."""+ if getattr(request.config, "_known_failure_profile", None) is None:+ yield+ return+ with _isolated_test_rng(test_rng_seed):+ yield++@pytest.fixture(autouse=True)def skip_half_precision_on_cuda(request):"""Skip float16/bfloat16 CUDA tests unless running inside a subprocess.diff --git a/docs/source/get-started/precision.rst b/docs/source/get-started/precision.rstindex 2ff317df9..90459a6d7 100644--- a/docs/source/get-started/precision.rst+++ b/docs/source/get-started/precision.rst@@ -122,10 +122,10 @@ Full test suite (no ``--runslow``). Pass% = passed Γ· (passed + failed);skipped and xfailed tests are excluded. CPU rows were measured on commit``4ab79c78`` (2026-08-29); CUDA rows are still from ``6131e98`` (2026-03-21).-The half-precision suite is not run in CI (see `issue #4070-<https://github.com/kornia/kornia/issues/4070>`_), so these numbers are refreshed by hand: the two CPU half rows-with ``pixi run test-half``, and the CPU float32 baseline with ``pixi run test-f32``, since ``test-half`` pins-``KORNIA_TEST_DTYPE`` to ``float16,bfloat16``.+The CPU half-precision suites run as separate blocking ``float16`` and ``bfloat16`` CI jobs with strict manifests+for known failures, addressing `issue #4070 <https://github.com/kornia/kornia/issues/4070>`_. The historical table+counts are still refreshed by hand: the two CPU half rows with ``pixi run test-half``, and the CPU float32 baseline+with ``pixi run test-f32``, since ``test-half`` pins ``KORNIA_TEST_DTYPE`` to ``float16,bfloat16``... list-table:::header-rows: 1diff --git a/kornia/enhance/core.py b/kornia/enhance/core.pyindex 77c2a5951..21b640c7b 100644--- a/kornia/enhance/core.py+++ b/kornia/enhance/core.py@@ -66,18 +66,12 @@ def add_weighted(if isinstance(alpha, torch.Tensor):KORNIA_CHECK(src1.shape == alpha.shape, "alpha has a different shape than src.")- else:- alpha = torch.tensor(alpha, dtype=src1.dtype, device=src1.device)if isinstance(beta, torch.Tensor):KORNIA_CHECK(src1.shape == beta.shape, "beta has a different shape than src.")- else:- beta = torch.tensor(beta, dtype=src1.dtype, device=src1.device)if isinstance(gamma, torch.Tensor):KORNIA_CHECK(src1.shape == gamma.shape, "gamma has a different shape than src.")- else:- gamma = torch.tensor(gamma, dtype=src1.dtype, device=src1.device)return src1 * alpha + src2 * beta + gammadiff --git a/testing/half_precision_ci.py b/testing/half_precision_ci.pynew file mode 100644index 000000000..1eabdd899--- /dev/null+++ b/testing/half_precision_ci.py@@ -0,0 +1,587 @@+# 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.+#++from __future__ import annotations++import hashlib+import os+import platform+import shutil+import subprocess+import sys+import tempfile+import warnings+from collections import defaultdict+from dataclasses import dataclass+from pathlib import Path+from typing import Any, Literal, Mapping, Sequence, cast++import numpy as np+import pytest+import torch++from testing.half_precision_eager_rng import AuditedEagerRngCall, eager_rng_calls_for_node++ISSUE_URL = "https://github.com/kornia/kornia/issues/4153"+_MANIFEST_DIR = Path(__file__).with_name("half_precision_xfails")+_XFAIL_REASON_PREFIX = f"Known Linux CPU half-precision failure tracked in {ISSUE_URL}"+_SCHEMA_VERSION = "1"+_SEED_SCHEME = "sha256-nodeid-v1"+_ALLOWED_PHASES = {"setup", "call"}+++@dataclass(frozen=True)+class ManifestProfile:+ """Stable configuration for one Linux CPU half-precision baseline."""++ name: str+ dtype: str+ manifest_path: Path+++@dataclass(frozen=True)+class ManifestEntry:+ """One exact failure outcome accepted by a manifest."""++ phase: Literal["setup", "call"]+ exception: str+ nodeid: str+++@dataclass(frozen=True)+class ManifestEnvironment:+ """Compatibility and provenance fields recorded in a manifest header."""++ python: str+ pytorch: str+ os: str+ arch: str+ pytest: str+ numpy: str+ pillow: str+++_PROFILES = {+ name: ManifestProfile(name, dtype, _MANIFEST_DIR / f"cpu_{dtype}.txt")+ for name, dtype in (("cpu-float16", "float16"), ("cpu-bfloat16", "bfloat16"))+}+++def get_profile(name: str) -> ManifestProfile:+ """Return a supported CPU-half manifest profile."""+ try:+ return _PROFILES[name]+ except KeyError as error:+ known = ", ".join(sorted(_PROFILES))+ raise ValueError(f"unknown profile {name!r}; known profiles are: {known}") from error+++def current_environment() -> ManifestEnvironment:+ """Capture enforced compatibility and warning-only provenance metadata."""+ try:+ from PIL import __version__ as pillow_version+ except ImportError:+ pillow_version = "not-installed"+ return ManifestEnvironment(+ python=f"{sys.version_info.major}.{sys.version_info.minor}",+ pytorch=torch.__version__.partition("+")[0],+ os=platform.system(),+ arch=platform.machine(),+ pytest=pytest.__version__,+ numpy=np.__version__,+ pillow=pillow_version,+ )+++def serialize_manifest(+ profile: ManifestProfile,+ entries: Sequence[ManifestEntry],+ environment: ManifestEnvironment,+ generation_command: str,+) -> str:+ """Serialize a canonical profile manifest without resolving exception classes."""+ header = {+ "known-failure-schema": _SCHEMA_VERSION,+ "profile": profile.name,+ "python": environment.python,+ "pytorch": environment.pytorch,+ "os": environment.os,+ "arch": environment.arch,+ "seed-scheme": _SEED_SCHEME,+ "pytest": environment.pytest,+ "numpy": environment.numpy,+ "pillow": environment.pillow,+ "generated-by": generation_command,+ }+ lines = [*(f"# {key}: {value}" for key, value in header.items()), ""]+ lines.extend(+ f"{entry.phase}\t{entry.exception}\t{entry.nodeid}" for entry in sorted(entries, key=lambda x: x.nodeid)+ )+ return "\n".join([*lines, ""])+++def parse_manifest(+ profile: ManifestProfile,+ text: str,+ environment: ManifestEnvironment,+ *,+ source: Path | None = None,+ enforce_compatibility: bool = True,+) -> dict[str, ManifestEntry]:+ """Parse one manifest without importing exceptions, optionally warning on environment drift."""+ label = str(source) if source is not None else "manifest"+ header: dict[str, str] = {}+ entries: dict[str, ManifestEntry] = {}+ for line_number, line in enumerate(text.splitlines(), start=1):+ if not line:+ continue+ if line.startswith("# ") and ": " in line:+ key, value = line[2:].split(": ", maxsplit=1)+ header[key] = value+ continue+ if line.startswith("#"):+ continue+ fields = line.split("\t")+ if len(fields) != 3:+ raise ValueError(f"{label}:{line_number}: expected '<phase>\\t<exception>\\t<node ID>'")+ phase, exception, nodeid = fields+ if phase not in _ALLOWED_PHASES:+ raise ValueError(f"{label}:{line_number}: unsupported phase: {phase!r}")+ if not exception or not nodeid:+ raise ValueError(f"{label}:{line_number}: exception identity and node ID must be non-empty")+ if nodeid in entries:+ raise ValueError(f"{label}:{line_number}: duplicate node ID: {nodeid}")+ entries[nodeid] = ManifestEntry(cast(Literal["setup", "call"], phase), exception, nodeid)++ identity = {+ "known-failure-schema": _SCHEMA_VERSION,+ "profile": profile.name,+ "seed-scheme": _SEED_SCHEME,+ }+ for key, expected in identity.items():+ observed = header.get(key)+ if observed != expected:+ raise ValueError(f"{label}: {key} mismatch: expected {expected!r}, found {observed!r}")++ for key, expected in {+ "python": environment.python,+ "pytorch": environment.pytorch,+ "os": environment.os,+ "arch": environment.arch,+ }.items():+ observed = header.get(key)+ if observed == expected:+ continue+ display = "Python" if key == "python" else key+ message = f"{label}: {display} mismatch: expected {expected!r}, found {observed!r}"+ if enforce_compatibility:+ raise ValueError(message)+ warnings.warn(f"{display} compatibility differs; {message}", stacklevel=2)++ for key, expected in {+ "pytest": environment.pytest,+ "numpy": environment.numpy,+ "pillow": environment.pillow,+ }.items():+ observed = header.get(key)+ if observed != expected:+ warnings.warn(+ f"{label}: {key} provenance differs: recorded {observed!r}, running {expected!r}", stacklevel=2+ )+ return entries+++def seed_test_rng(nodeid: str) -> int:+ """Derive a stable per-node seed without mutating any process-global RNG."""+ return int.from_bytes(hashlib.sha256(f"v1\0{nodeid}".encode()).digest()[:4], "big")+++def _canonical_exception_identity(exception_type: type[BaseException]) -> str:+ return f"{exception_type.__module__}.{exception_type.__qualname__}"+++def validate_record_destination(output_path: Path, rootpath: Path) -> Path:+ """Resolve a candidate destination and reject checked-in or Git-tracked aliases."""+ root = rootpath.resolve()+ unresolved = output_path if output_path.is_absolute() else root / output_path+ destination = unresolved.resolve()+ manifest_dir = _MANIFEST_DIR.resolve()+ if destination == manifest_dir or destination.is_relative_to(manifest_dir):+ raise ValueError(f"record destination resolves inside the checked-in manifest directory: {destination}")+ if destination.is_relative_to(root):+ git = shutil.which("git")+ if git is None:+ raise OSError("cannot validate the candidate destination because Git is unavailable")+ repository = subprocess.run( # noqa: S603 - all arguments are fixed or resolved local paths.+ [git, "-C", str(root), "rev-parse", "--show-toplevel"],+ check=False,+ stdout=subprocess.PIPE,+ stderr=subprocess.DEVNULL,+ text=True,+ )+ if repository.returncode == 0 and Path(repository.stdout.strip()).resolve() == root:+ relative = destination.relative_to(root)+ tracked = subprocess.run( # noqa: S603 - -- terminates options before the resolved relative path.+ [git, "-C", str(root), "ls-files", "--error-unmatch", "--", relative.as_posix()],+ check=False,+ stdout=subprocess.DEVNULL,+ stderr=subprocess.DEVNULL,+ )+ if tracked.returncode == 0:+ raise ValueError(f"record destination is Git-tracked: {destination}")+ if tracked.returncode != 1:+ raise OSError(f"could not determine whether record destination is Git-tracked: {destination}")+ if not destination.parent.is_dir():+ raise ValueError(f"record destination parent does not exist: {destination.parent}")+ return destination+++def _previous_manifest_entries(profile: ManifestProfile) -> dict[str, ManifestEntry]:+ """Load the checked-in v1 entries used to categorize a candidate delta."""+ text = profile.manifest_path.read_text(encoding="utf-8")+ return parse_manifest(+ profile, text, current_environment(), source=profile.manifest_path, enforce_compatibility=False+ )+++class FailureRecorder:+ """Write a candidate only after proving that the full pytest session completed."""++ def __init__(+ self,+ profile: ManifestProfile,+ output_path: Path,+ *,+ rootpath: Path,+ previous_entries: Mapping[str, ManifestEntry] | None = None,+ ) -> None:+ self.profile = profile+ self.output_path = validate_record_destination(output_path, rootpath)+ self.previous_entries = (+ dict(previous_entries) if previous_entries is not None else _previous_manifest_entries(profile)+ )+ self.entries: dict[str, ManifestEntry] = {}+ self.collected: set[str] = set()+ self.finished: set[str] = set()+ self.reports: dict[str, list[tuple[str, str, str | None]]] = defaultdict(list)+ self.collection_finished = False+ self.collection_failed = False+ self.interrupted = False+ self.abort_reasons: list[str] = []+ self.eager_blockers: dict[str, tuple[AuditedEagerRngCall, ...]] = {}+ self.categories: dict[str, str] = {}+ self.written = False++ @pytest.hookimpl(tryfirst=True)+ def pytest_collectreport(self, report: Any) -> None:+ if report.failed:+ self.collection_failed = True++ def pytest_collection_finish(self, session: pytest.Session) -> None:+ self.collection_finished = True+ self.collected = {item.nodeid for item in session.items}++ def pytest_runtest_logfinish(self, nodeid: str) -> None:+ self.finished.add(nodeid)++ def pytest_keyboard_interrupt(self) -> None:+ self.interrupted = True++ @pytest.hookimpl(hookwrapper=True, tryfirst=True)+ def pytest_runtest_makereport(self, item: Any, call: Any) -> Any:+ """Capture exact unhandled setup/call failures and all lifecycle outcomes."""+ outcome = yield+ report = outcome.get_result()+ wasxfail = getattr(report, "wasxfail", None)+ self.reports[report.nodeid].append((report.when, report.outcome, wasxfail))+ if (+ report.when in _ALLOWED_PHASES+ and report.outcome == "failed"+ and wasxfail is None+ and call.excinfo is not None+ ):+ entry = ManifestEntry(report.when, _canonical_exception_identity(call.excinfo.type), report.nodeid)+ existing = self.entries.setdefault(report.nodeid, entry)+ if existing != entry:+ self.abort_reasons.append(f"multiple representable failures for {report.nodeid}")+ blockers = eager_rng_calls_for_node(report.nodeid)+ if blockers:+ self.eager_blockers[report.nodeid] = blockers+ if report.when == "teardown" and report.outcome != "passed":+ if report.nodeid in self.entries or report.nodeid in self.previous_entries:+ self.abort_reasons.append(f"unrepresentable teardown failure for {report.nodeid}")++ def _check_completeness(self, session: pytest.Session) -> None:+ if session.config.option.collectonly:+ self.abort_reasons.append("collect-only execution cannot produce a candidate")+ if not self.collection_finished or self.collection_failed:+ self.abort_reasons.append("collection did not finish successfully")+ if not self.collected:+ self.abort_reasons.append("the canonical suite collected no tests")+ unfinished = self.collected - self.finished+ if unfinished:+ self.abort_reasons.append(f"{len(unfinished)} collected test(s) never reached log finish")+ if self.interrupted:+ self.abort_reasons.append("execution was interrupted")+ if session.exitstatus not in {pytest.ExitCode.OK, pytest.ExitCode.TESTS_FAILED}:+ self.abort_reasons.append(f"pytest stopped with incomplete exit status {session.exitstatus}")+ for nodeid, blockers in sorted(self.eager_blockers.items()):+ sites = ", ".join(f"{entry.call.path}:{entry.call.line} ({entry.call.name})" for entry in blockers)+ self.abort_reasons.append(+ f"eager RNG feeds candidate node {nodeid}: {sites}; move the draw into the test or a seeded fixture"+ )++ def _categorize_previous_entries(self) -> None:+ for nodeid, previous in self.previous_entries.items():+ candidate = self.entries.get(nodeid)+ if candidate is not None:+ self.categories[nodeid] = "reproduced" if candidate == previous else "changed-outcome"+ elif nodeid not in self.collected:+ self.categories[nodeid] = "deleted-or-renamed"+ elif nodeid not in self.finished:+ self.categories[nodeid] = "incomplete"+ elif any(wasxfail is not None for _, _, wasxfail in self.reports[nodeid]):+ self.categories[nodeid] = "competing-xfail"+ elif any(outcome == "skipped" for _, outcome, _ in self.reports[nodeid]):+ self.categories[nodeid] = "skipped"+ else:+ self.categories[nodeid] = "passed"++ def _write_candidate(self) -> None:+ generation_command = (+ f"pytest tests/ --record-known-failures=<candidate> --known-failure-profile={self.profile.name}"+ )+ contents = serialize_manifest(+ self.profile, tuple(self.entries.values()), current_environment(), generation_command+ )+ parse_manifest(self.profile, contents, current_environment(), source=self.output_path)+ temporary_path: Path | None = None+ try:+ with tempfile.NamedTemporaryFile(+ mode="w",+ encoding="utf-8",+ dir=self.output_path.parent,+ prefix=f".{self.output_path.name}.",+ delete=False,+ ) as temporary:+ temporary.write(contents)+ temporary.flush()+ os.fsync(temporary.fileno())+ temporary_path = Path(temporary.name)+ os.replace(temporary_path, self.output_path)+ self.written = True+ finally:+ if temporary_path is not None and temporary_path.exists():+ temporary_path.unlink()++ def pytest_sessionfinish(self, session: pytest.Session) -> None:+ """Serialize atomically only when completeness and lifecycle checks succeed."""+ self._check_completeness(session)+ self._categorize_previous_entries()+ if not self.abort_reasons:+ try:+ self._write_candidate()+ except Exception as error: # noqa: BLE001 - every writer failure must preserve the previous candidate.+ self.abort_reasons.append(f"candidate serialization failed: {error}")+ if self.abort_reasons and session.exitstatus == pytest.ExitCode.OK:+ session.exitstatus = pytest.ExitCode.TESTS_FAILED++ def pytest_terminal_summary(self, terminalreporter: Any) -> None:+ """Print a receipt or an actionable abort report independently of pytest's test count."""+ if self.abort_reasons:+ terminalreporter.write_line(+ f"known-failure candidate ABORTED for {self.profile.name}; preserved {self.output_path}", red=True+ )+ for reason in dict.fromkeys(self.abort_reasons):+ terminalreporter.write_line(f" {reason}")+ return+ if not self.written:+ return+ terminalreporter.write_line(+ f"known-failure candidate complete for {self.profile.name}: "+ f"{len(self.entries)} entries at {self.output_path}"+ )+ for nodeid, category in sorted(self.categories.items()):+ if category != "reproduced":+ terminalreporter.write_line(f"OLD {category}: {nodeid}")+ for nodeid in sorted(set(self.entries) - set(self.previous_entries)):+ entry = self.entries[nodeid]+ terminalreporter.write_line(f"NEW: {entry.phase}\t{entry.exception}\t{entry.nodeid}")+++class KnownFailureTracker:+ """Require every manifest entry to reproduce its exact phase and exception identity."""++ def __init__(+ self,+ profile: ManifestProfile,+ manifest_path: Path,+ *,+ mode: Literal["focus", "complete"] = "focus",+ selectors: Sequence[str] | None = None,+ rootpath: Path | None = None,+ ) -> None:+ self.mode = mode+ self.selectors = tuple(selectors or ())+ self.rootpath = rootpath+ self.reason = _XFAIL_REASON_PREFIX+ self._collect_only = False+ self._collection_failed = False+ self._matched: set[str] = set()+ self._invalid: set[str] = set()+ self._finished_with_unexpected_outcome: set[str] = set()+ self._observed: dict[str, list[str]] = {}+ self.profile = profile+ self.manifest_paths = (manifest_path,)+ entries = parse_manifest(+ profile,+ manifest_path.read_text(encoding="utf-8"),+ current_environment(),+ source=manifest_path,+ enforce_compatibility=self.mode == "complete",+ )+ if self.mode == "focus" and self.selectors:+ entries = {+ nodeid: entry+ for nodeid, entry in entries.items()+ if any(_matches_selector(nodeid, selector, self.rootpath) for selector in self.selectors)+ }+ self._expected_entries = entries+ self.pending = set(self._expected_entries)++ def pytest_sessionstart(self, session: pytest.Session) -> None:+ """Disable runtime-outcome validation during collection-only runs."""+ self._collect_only = session.config.getoption("collectonly")++ @pytest.hookimpl(tryfirst=True)+ def pytest_collectreport(self, report: Any) -> None:+ """Remember collection failure so stale-manifest advice cannot mask it."""+ if report.failed:+ self._collection_failed = True++ @pytest.hookimpl(tryfirst=True)+ def pytest_collection_modifyitems(self, items: Sequence[Any]) -> None:+ """Apply the manifest marker after collection without inferring configuration from node IDs."""+ for item in items:+ if item.nodeid in self._expected_entries:+ item.add_marker(pytest.mark.xfail(reason=self.reason, strict=True))++ @pytest.hookimpl(hookwrapper=True, tryfirst=True)+ def pytest_runtest_makereport(self, item: Any, call: Any) -> Any:+ """Observe all phases; pytest's xfail result alone is not the exact-outcome authority."""+ outcome = yield+ report = outcome.get_result()+ if report.nodeid not in self.pending:+ return+ wasxfail = getattr(report, "wasxfail", None)+ expected = self._expected_entries[report.nodeid]+ exception_type = call.excinfo.type if call.excinfo is not None else None++ if report.when in {"setup", "call"} and report.outcome == "skipped" and wasxfail == self.reason:+ if exception_type is None:+ observed = f"{report.when} xfail without an exception"+ else:+ identity = _canonical_exception_identity(exception_type)+ observed = f"{report.when} {identity}"+ exact_match = report.when == expected.phase and identity == expected.exception+ if exact_match:+ self._matched.add(report.nodeid)+ return+ self._observed.setdefault(report.nodeid, []).append(observed)+ self._invalid.add(report.nodeid)+ elif report.when == "teardown" and report.outcome != "passed":+ self._observed.setdefault(report.nodeid, []).append(f"teardown {report.outcome}")+ self._invalid.add(report.nodeid)+ elif report.outcome == "skipped":+ category = "competing xfail" if wasxfail is not None else "skip"+ self._observed.setdefault(report.nodeid, []).append(f"{report.when} {category}")+ self._invalid.add(report.nodeid)+ elif report.outcome == "failed" or (wasxfail is not None and report.outcome != "passed"):+ identity = _canonical_exception_identity(exception_type) if exception_type is not None else "strict XPASS"+ self._observed.setdefault(report.nodeid, []).append(f"{report.when} {identity}")+ self._invalid.add(report.nodeid)++ def pytest_runtest_logfinish(self, nodeid: str) -> None:+ """Accept an entry only after all setup, call, and teardown reports are known."""+ if nodeid in self._matched and nodeid not in self._invalid:+ self.pending.remove(nodeid)+ elif nodeid in self.pending:+ self._finished_with_unexpected_outcome.add(nodeid)+ self._matched.discard(nodeid)+ self._invalid.discard(nodeid)++ def pytest_deselected(self, items: Sequence[Any]) -> None:+ """Exclude locally deselected entries from outcome validation."""+ if self.mode == "focus":+ for item in items:+ self.pending.discard(item.nodeid)++ def pytest_sessionfinish(self, session: pytest.Session) -> None:+ """Fail the session when a manifest entry was skipped or handled by another xfail."""+ if (+ not self._collect_only+ and self.pending+ and not self._collection_failed+ and session.exitstatus == pytest.ExitCode.OK+ ):+ session.exitstatus = pytest.ExitCode.TESTS_FAILED++ def pytest_terminal_summary(self, terminalreporter: Any) -> None:+ """Report manifest entries that did not produce their required xfail outcome."""+ if self._collect_only or not self.pending or self._collection_failed:+ return+ count = len(self.pending)+ noun = "failure" if count == 1 else "failures"+ manifests = ", ".join(str(path) for path in self.manifest_paths)+ verb = "needs" if count == 1 else "need"+ terminalreporter.write_line(f"ERROR: {count} known half-precision {noun} {verb} updates in {manifests}:")+ unexpected = self.pending & self._finished_with_unexpected_outcome+ not_run = self.pending - unexpected+ if unexpected:+ terminalreporter.write_line("Ran with an unexpected outcome:")+ for nodeid in sorted(unexpected):+ expected = self._expected_entries[nodeid]+ terminalreporter.write_line(f"{nodeid}: expected {expected.phase} {expected.exception}")+ for observed in self._observed.get(nodeid, ["pass or incomplete lifecycle"]):+ terminalreporter.write_line(f" observed {observed}")+ terminalreporter.write_line(+ f" remove or update: {expected.phase}\t{expected.exception}\t{expected.nodeid}"+ )+ if not_run:+ terminalreporter.write_line("Did not run; rerun without selection or remove/update a stale manifest line:")+ for nodeid in sorted(not_run):+ terminalreporter.write_line(nodeid)+++def _normalize_selector(selector: str, rootpath: Path | None = None) -> str:+ path, separator, node = selector.partition("::")+ selector_path = Path(path)+ if selector_path.is_absolute() and rootpath is not None:+ try:+ selector_path = selector_path.relative_to(rootpath)+ except ValueError:+ pass+ normalized_path = selector_path.as_posix().removeprefix("./").rstrip("/")+ return f"{normalized_path}::{node}" if separator else normalized_path+++def _matches_selector(nodeid: str, selector: str, rootpath: Path | None = None) -> bool:+ selector = _normalize_selector(selector, rootpath)+ node_path = nodeid.partition("::")[0]+ if "::" in selector:+ return nodeid == selector or nodeid.startswith((f"{selector}[", f"{selector}::"))+ return node_path == selector or node_path.startswith(f"{selector}/")diff --git a/testing/half_precision_eager_rng.py b/testing/half_precision_eager_rng.pynew file mode 100644index 000000000..e833dcf0b--- /dev/null+++ b/testing/half_precision_eager_rng.py@@ -0,0 +1,234 @@+# 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.+#++from __future__ import annotations++import ast+from dataclasses import dataclass+from pathlib import Path+from typing import Literal++_PYTHON_RANDOM_CALLS = {+ "betavariate",+ "choice",+ "choices",+ "expovariate",+ "gammavariate",+ "gauss",+ "getrandbits",+ "lognormvariate",+ "normalvariate",+ "paretovariate",+ "randbytes",+ "randint",+ "random",+ "randrange",+ "sample",+ "seed",+ "shuffle",+ "triangular",+ "uniform",+ "vonmisesvariate",+ "weibullvariate",+}+_TORCH_RANDOM_CALLS = {+ "bernoulli",+ "multinomial",+ "normal",+ "poisson",+ "rand",+ "rand_like",+ "randint",+ "randint_like",+ "randn",+ "randn_like",+ "randperm",+}+++@dataclass(frozen=True, order=True)+class EagerRngCall:+ path: str+ line: int+ name: str+++@dataclass(frozen=True)+class AuditedEagerRngCall:+ call: EagerRngCall+ node_prefixes: tuple[str, ...]+ classification: Literal["value-independent", "value-dependent", "not-collected"]+++def _attribute_name(node: ast.expr) -> str | None:+ parts: list[str] = []+ while isinstance(node, ast.Attribute):+ parts.append(node.attr)+ node = node.value+ if not isinstance(node, ast.Name):+ return None+ parts.append(node.id)+ return ".".join(reversed(parts))+++def _is_rng_call(name: str) -> bool:+ parts = name.split(".")+ if len(parts) == 2 and parts[0] == "random":+ return parts[1] in _PYTHON_RANDOM_CALLS+ if len(parts) >= 3 and parts[:2] in (["np", "random"], ["numpy", "random"], ["torch", "random"]):+ return True+ return len(parts) == 2 and parts[0] == "torch" and parts[1] in _TORCH_RANDOM_CALLS+++class _EagerRngVisitor(ast.NodeVisitor):+ """Visit expressions evaluated while importing a module, but not lazy bodies."""++ def __init__(self, path: str) -> None:+ self.path = path+ self.calls: list[EagerRngCall] = []++ def visit_FunctionDef(self, node: ast.FunctionDef) -> None:+ for expression in (*node.decorator_list, *node.args.defaults, *node.args.kw_defaults):+ if expression is not None:+ self.visit(expression)++ visit_AsyncFunctionDef = visit_FunctionDef++ def visit_Lambda(self, node: ast.Lambda) -> None:+ for expression in (*node.args.defaults, *node.args.kw_defaults):+ if expression is not None:+ self.visit(expression)++ def visit_Call(self, node: ast.Call) -> None:+ name = _attribute_name(node.func)+ if name is not None and _is_rng_call(name):+ self.calls.append(EagerRngCall(self.path, node.lineno, name))+ self.generic_visit(node)+++def find_eager_rng_calls(root: Path) -> tuple[EagerRngCall, ...]:+ """Return eager Python, NumPy, and Torch RNG calls below a repository or test root."""+ scan_root = root / "tests" if (root / "tests").is_dir() else root+ calls: list[EagerRngCall] = []+ for path in sorted(scan_root.rglob("*.py")):+ visitor = _EagerRngVisitor(path.relative_to(root).as_posix())+ visitor.visit(ast.parse(path.read_text(encoding="utf-8"), filename=str(path)))+ calls.extend(visitor.calls)+ return tuple(sorted(calls))+++def _audited(+ path: str,+ line: int,+ name: str,+ count: int,+ node_prefixes: tuple[str, ...],+ classification: Literal["value-independent", "value-dependent", "not-collected"],+) -> tuple[AuditedEagerRngCall, ...]:+ return tuple(+ AuditedEagerRngCall(EagerRngCall(path, line, name), node_prefixes, classification) for _ in range(count)+ )+++AUDITED_EAGER_RNG_CALLS = tuple(+ sorted(+ (+ *_audited(+ "tests/augmentation/container/test_augmentation_sequential.py",+ 47,+ "torch.randn",+ 2,+ (+ "tests/augmentation/container/test_augmentation_sequential.py::TestAugmentationSequential::test_mixup",+ ),+ "value-dependent",+ ),+ *_audited(+ "tests/augmentation/test_param_validation.py",+ 110,+ "torch.rand",+ 1,+ ("tests/augmentation/test_param_validation.py::TestParamValidation::test_tuple_range_reader_errors",),+ "value-independent",+ ),+ *_audited("tests/benchmark.py", 32, "torch.rand", 1, (), "not-collected"),+ *(+ AuditedEagerRngCall(+ EagerRngCall("tests/core/test_check.py", line, "torch.rand"),+ (f"tests/core/test_check.py::TestCheckShape::{test_name}",),+ "value-independent",+ )+ for test_name, lines in (("test_valid", range(71, 75)), ("test_invalid", range(83, 87)))+ for line in lines+ ),+ *(+ _audited(+ "tests/enhance/test_core.py",+ line,+ "torch.randn",+ 1,+ ("tests/enhance/test_core.py::TestAddWeighted::test_shape",),+ "value-dependent",+ )[0]+ for line in range(95, 98)+ ),+ *_audited(+ "tests/geometry/subpix/test_dsnt.py",+ 73,+ "torch.randn",+ 1,+ (+ "tests/geometry/subpix/test_dsnt.py::TestSpatialSoftmax2d::test_forward",+ "tests/geometry/subpix/test_dsnt.py::TestSpatialSoftmax2d::test_dynamo",+ ),+ "value-dependent",+ ),+ *_audited(+ "tests/image/test_draw.py",+ 305,+ "torch.rand",+ 4,+ ("tests/image/test_draw.py::TestDrawLine::test_point_size",),+ "value-independent",+ ),+ *_audited(+ "tests/losses/test_total_variation.py",+ 127,+ "torch.rand",+ 3,+ ("tests/losses/test_total_variation.py::TestTotalVariation::test_tv_shapes",),+ "value-dependent",+ ),+ ),+ key=lambda entry: entry.call,+ )+)+++def node_matches_prefix(nodeid: str, prefix: str) -> bool:+ """Match one unparameterized node exactly or at its parameter boundary."""+ return nodeid == prefix or nodeid.startswith(f"{prefix}[")+++def eager_rng_calls_for_node(nodeid: str) -> tuple[AuditedEagerRngCall, ...]:+ """Return audited eager RNG calls whose values feed a collected node."""+ return tuple(+ entry+ for entry in AUDITED_EAGER_RNG_CALLS+ if entry.classification == "value-dependent"+ and any(node_matches_prefix(nodeid, prefix) for prefix in entry.node_prefixes)+ )diff --git a/testing/half_precision_xfails/cpu_bfloat16.txt b/testing/half_precision_xfails/cpu_bfloat16.txtnew file mode 100644index 000000000..51ce4e674--- /dev/null+++ b/testing/half_precision_xfails/cpu_bfloat16.txt@@ -0,0 +1,588 @@+# known-failure-schema: 1+# profile: cpu-bfloat16+# python: 3.11+# pytorch: 2.9.1+# os: Linux+# arch: x86_64+# seed-scheme: sha256-nodeid-v1+# pytest: 9.0.3+# numpy: 2.4.0+# pillow: 12.3.0+# generated-by: pytest tests/ --record-known-failures=<candidate> --known-failure-profile=cpu-bfloat16++call builtins.NotImplementedError tests/augmentation/_3d/test_random_affine_3d.py::TestRandomAffine3D::test_batch_random_affine_3d[cpu-bfloat16]+call builtins.AssertionError tests/augmentation/_3d/test_random_rotation_3d.py::TestRandomRotation3D::test_batch_random_rotation[cpu-bfloat16]+call builtins.AssertionError tests/augmentation/_3d/test_random_rotation_3d.py::TestRandomRotation3D::test_random_rotation[cpu-bfloat16]+call builtins.AssertionError tests/augmentation/container/test_augmentation_sequential.py::TestAugmentationSequential::test_random_crops[cpu-bfloat16]+call builtins.AssertionError tests/augmentation/container/test_augmentation_sequential.py::TestAugmentationSequential::test_random_erasing[cpu-bfloat16]+call builtins.AssertionError tests/augmentation/test_augmentation.py::TestPlanckianJitter::test_planckian_jitter_batch[cpu-bfloat16]+call builtins.AssertionError tests/augmentation/test_augmentation.py::TestPlanckianJitter::test_planckian_jitter_blackbody[cpu-bfloat16]+call builtins.AssertionError tests/augmentation/test_augmentation.py::TestPlanckianJitter::test_planckian_jitter_cied[cpu-bfloat16]+call builtins.AssertionError tests/augmentation/test_augmentation.py::TestPlanckianJitter::test_planckian_jitter_same_on_batch[cpu-bfloat16]+call builtins.AssertionError tests/augmentation/test_augmentation.py::TestRandomClahe::test_smoke[cpu-bfloat16]+call builtins.AssertionError tests/augmentation/test_augmentation.py::TestRandomCrop::test_pad_if_needed_both[cpu-bfloat16]+call builtins.AssertionError tests/augmentation/test_augmentation.py::TestRandomGaussianIllumination::test_smoke[cpu-bfloat16]+call builtins.AssertionError tests/augmentation/test_augmentation.py::TestRandomHue::test_sequential[cpu-bfloat16]+call builtins.AssertionError tests/augmentation/test_augmentation.py::TestRandomRGBShift::test_random_rgb_shift[cpu-bfloat16]+call builtins.AssertionError tests/augmentation/test_augmentation.py::TestRandomRGBShift::test_random_rgb_shift_same_batch[cpu-bfloat16]+call builtins.AssertionError tests/augmentation/test_augmentation.py::TestRandomSaturation::test_sequential[cpu-bfloat16]+call builtins.KeyError tests/augmentation/test_augmentation_mix.py::TestRandomCutMixV2::test_partial_batch_passthrough[cpu-bfloat16-0.0]+call builtins.KeyError tests/augmentation/test_augmentation_mix.py::TestRandomCutMixV2::test_partial_batch_passthrough[cpu-bfloat16-0.5]+call builtins.KeyError tests/augmentation/test_augmentation_mix.py::TestRandomCutMixV2::test_random_mixup_beta0[cpu-bfloat16]+call builtins.KeyError tests/augmentation/test_augmentation_mix.py::TestRandomCutMixV2::test_random_mixup_num2[cpu-bfloat16]+call builtins.KeyError tests/augmentation/test_augmentation_mix.py::TestRandomCutMixV2::test_random_mixup_p0[cpu-bfloat16]+call builtins.KeyError tests/augmentation/test_augmentation_mix.py::TestRandomCutMixV2::test_random_mixup_p1[cpu-bfloat16]+call builtins.KeyError tests/augmentation/test_augmentation_mix.py::TestRandomCutMixV2::test_random_mixup_same_on_batch[cpu-bfloat16]+call builtins.KeyError tests/augmentation/test_augmentation_mix.py::TestRandomJigsaw::test_numerical[cpu-bfloat16]+call builtins.KeyError tests/augmentation/test_augmentation_mix.py::TestRandomJigsaw::test_p[cpu-bfloat16-False-0.0]+call builtins.KeyError tests/augmentation/test_augmentation_mix.py::TestRandomJigsaw::test_p[cpu-bfloat16-False-0.5]+call builtins.KeyError tests/augmentation/test_augmentation_mix.py::TestRandomJigsaw::test_p[cpu-bfloat16-False-1.0]+call builtins.KeyError tests/augmentation/test_augmentation_mix.py::TestRandomJigsaw::test_p[cpu-bfloat16-True-0.0]+call builtins.KeyError tests/augmentation/test_augmentation_mix.py::TestRandomJigsaw::test_p[cpu-bfloat16-True-0.5]+call builtins.KeyError tests/augmentation/test_augmentation_mix.py::TestRandomJigsaw::test_p[cpu-bfloat16-True-1.0]+call builtins.KeyError tests/augmentation/test_augmentation_mix.py::TestRandomJigsaw::test_partial_batch_passthrough[cpu-bfloat16-0.0]+call builtins.KeyError tests/augmentation/test_augmentation_mix.py::TestRandomJigsaw::test_partial_batch_passthrough[cpu-bfloat16-0.5]+call builtins.KeyError tests/augmentation/test_augmentation_mix.py::TestRandomJigsaw::test_smoke[cpu-bfloat16]+call builtins.KeyError tests/augmentation/test_augmentation_mix.py::TestRandomMixUpV2::test_partial_batch_passthrough[cpu-bfloat16-0.0]+call builtins.KeyError tests/augmentation/test_augmentation_mix.py::TestRandomMixUpV2::test_partial_batch_passthrough[cpu-bfloat16-0.5]+call builtins.KeyError tests/augmentation/test_augmentation_mix.py::TestRandomMixUpV2::test_random_mixup_lam0[cpu-bfloat16]+call builtins.KeyError tests/augmentation/test_augmentation_mix.py::TestRandomMixUpV2::test_random_mixup_p0[cpu-bfloat16]+call builtins.KeyError tests/augmentation/test_augmentation_mix.py::TestRandomMixUpV2::test_random_mixup_p1[cpu-bfloat16]+call builtins.KeyError tests/augmentation/test_augmentation_mix.py::TestRandomMixUpV2::test_random_mixup_same_on_batch[cpu-bfloat16]+call builtins.KeyError tests/augmentation/test_augmentation_mix.py::TestRandomMosaic::test_numerical[cpu-bfloat16]+call builtins.KeyError tests/augmentation/test_augmentation_mix.py::TestRandomMosaic::test_p[cpu-bfloat16-0.0]+call builtins.KeyError tests/augmentation/test_augmentation_mix.py::TestRandomMosaic::test_p[cpu-bfloat16-0.5]+call builtins.KeyError tests/augmentation/test_augmentation_mix.py::TestRandomMosaic::test_p[cpu-bfloat16-1.0]+call builtins.RuntimeError tests/augmentation/test_auto_operation.py::TestAutoAugment::test_reproduce[cpu-bfloat16]+call builtins.RuntimeError tests/augmentation/test_auto_operation.py::TestAutoAugment::test_sequential[cpu-bfloat16]+call builtins.RuntimeError tests/augmentation/test_auto_operation.py::TestAutoAugment::test_smoke[cpu-bfloat16-cifar10]+call builtins.RuntimeError tests/augmentation/test_auto_operation.py::TestAutoAugment::test_smoke[cpu-bfloat16-imagenet]+call builtins.RuntimeError tests/augmentation/test_auto_operation.py::TestAutoAugment::test_smoke[cpu-bfloat16-policy3]+call builtins.RuntimeError tests/augmentation/test_auto_operation.py::TestAutoAugment::test_smoke[cpu-bfloat16-svhn]+call builtins.RuntimeError tests/augmentation/test_auto_operation.py::TestAutoAugment::test_transform_mat[cpu-bfloat16]+call builtins.RuntimeError tests/augmentation/test_auto_operation.py::TestRandAugment::test_sequential[cpu-bfloat16]+call builtins.RuntimeError tests/augmentation/test_auto_operation.py::TestRandAugment::test_transform_mat[cpu-bfloat16]+call builtins.RuntimeError tests/augmentation/test_auto_operation.py::TestRandAugment::test_transform_mat_repeated_policy[cpu-bfloat16]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-bfloat16-False-bilinear-circular-direction0-angle1]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-bfloat16-False-bilinear-circular-direction0-angle2]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-bfloat16-False-bilinear-circular-direction1-angle1]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-bfloat16-False-bilinear-circular-direction1-angle2]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-bfloat16-False-bilinear-constant-direction0-angle1]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-bfloat16-False-bilinear-constant-direction0-angle2]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-bfloat16-False-bilinear-constant-direction1-angle1]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-bfloat16-False-bilinear-constant-direction1-angle2]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-bfloat16-False-bilinear-replicate-direction0-angle1]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-bfloat16-False-bilinear-replicate-direction0-angle2]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-bfloat16-False-bilinear-replicate-direction1-angle1]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-bfloat16-False-bilinear-replicate-direction1-angle2]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-bfloat16-True-bilinear-circular-direction0-angle1]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-bfloat16-True-bilinear-circular-direction0-angle2]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-bfloat16-True-bilinear-circular-direction1-angle1]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-bfloat16-True-bilinear-circular-direction1-angle2]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-bfloat16-True-bilinear-constant-direction0-angle1]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-bfloat16-True-bilinear-constant-direction0-angle2]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-bfloat16-True-bilinear-constant-direction1-angle1]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-bfloat16-True-bilinear-constant-direction1-angle2]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-bfloat16-True-bilinear-replicate-direction0-angle1]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-bfloat16-True-bilinear-replicate-direction0-angle2]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-bfloat16-True-bilinear-replicate-direction1-angle1]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-bfloat16-True-bilinear-replicate-direction1-angle2]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomRotation3DBackward::test_param[cpu-bfloat16-False-False-bilinear-degrees7]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomRotation3DBackward::test_param[cpu-bfloat16-False-True-bilinear-degrees7]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomRotation3DBackward::test_param[cpu-bfloat16-True-False-bilinear-degrees7]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomRotation3DBackward::test_param[cpu-bfloat16-True-True-bilinear-degrees7]+call builtins.AssertionError tests/augmentation/test_perspective_rand.py::TestRandomPerspective::test_transform_module_should_return_expected_transform[cpu-bfloat16]+call builtins.AssertionError tests/augmentation/test_random_generator.py::TestColorJiggleGen::test_random_gen[cpu-bfloat16]+call builtins.AssertionError tests/augmentation/test_random_generator.py::TestColorJiggleGen::test_random_gen_accumulative_additive_additive[cpu-bfloat16]+call builtins.AssertionError tests/augmentation/test_random_generator.py::TestColorJiggleGen::test_same_on_batch[cpu-bfloat16]+call builtins.AssertionError tests/augmentation/test_random_generator.py::TestRandomAffineGen::test_same_on_batch[cpu-bfloat16]+call builtins.AssertionError tests/augmentation/test_random_generator.py::TestRandomCropSizeGen::test_random_gen[cpu-bfloat16]+call builtins.AssertionError tests/augmentation/test_random_generator.py::TestRandomCropSizeGen::test_same_on_batch[cpu-bfloat16]+call builtins.AssertionError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_same_on_batch[cpu-bfloat16]+call builtins.AssertionError tests/augmentation/test_random_generator_3d.py::TestRandomAffineGen3D::test_random_gen[cpu-bfloat16]+call builtins.AssertionError tests/augmentation/test_random_generator_3d.py::TestRandomCropGen3D::test_random_gen[cpu-bfloat16]+call builtins.AssertionError tests/augmentation/test_random_generator_3d.py::TestRandomPerspectiveGen3D::test_random_gen[cpu-bfloat16]+call builtins.AssertionError tests/augmentation/test_random_generator_3d.py::TestRandomPerspectiveGen3D::test_same_on_batch[cpu-bfloat16]+call builtins.AssertionError tests/color/test_lab.py::TestLabToRgb::test_forth_and_back[cpu-bfloat16]+call builtins.AssertionError tests/color/test_lab.py::TestLabToRgb::test_unit[cpu-bfloat16]+call builtins.AssertionError tests/color/test_lab.py::TestRgbToLab::test_forth_and_back[cpu-bfloat16]+call builtins.AssertionError tests/color/test_lab.py::TestRgbToLab::test_unit[cpu-bfloat16]+call builtins.AssertionError tests/color/test_luv.py::TestLuvToRgb::test_forth_and_back[cpu-bfloat16]+call builtins.AssertionError tests/color/test_luv.py::TestLuvToRgb::test_unit[cpu-bfloat16]+call builtins.AssertionError tests/color/test_luv.py::TestRgbToLuv::test_forth_and_back[cpu-bfloat16]+call builtins.AssertionError tests/color/test_luv.py::TestRgbToLuv::test_unit[cpu-bfloat16]+call builtins.AssertionError tests/color/test_rgb.py::TestRgb255Normals::test_back_and_forth[cpu-bfloat16]+call builtins.AssertionError tests/contrib/test_hist_match.py::TestHistMatch::test_histmatch[cpu-bfloat16]+call builtins.AssertionError tests/core/test_helpers.py::TestSvdCast::test_smoke[cpu-bfloat16]+call builtins.AssertionError tests/enhance/test_jpeg.py::TestDiffJPEG::test_cardinality[cpu-bfloat16]+call builtins.AssertionError tests/enhance/test_zca.py::TestZCA::test_dim_args[cpu-bfloat16-1]+call builtins.AssertionError tests/feature/test_affine_shape_estimator.py::TestLAFAffNetShapeEstimator::test_toy[cpu-bfloat16]+call builtins.AssertionError tests/feature/test_aliked.py::TestALIKED::test_descriptor_normalized[cpu-bfloat16]+call builtins.NotImplementedError tests/feature/test_hynet.py::TestHyNet::test_jit[cpu-bfloat16]+call builtins.AssertionError tests/feature/test_responces_local_features.py::TestBlobDoGSingle::test_blobs_batch[cpu-bfloat16]+call builtins.AssertionError tests/feature/test_responces_local_features.py::TestBlobHessian::test_blobs_batch[cpu-bfloat16]+call builtins.AssertionError tests/feature/test_responces_local_features.py::TestCornerGFTT::test_corners_batch[cpu-bfloat16]+call builtins.NotImplementedError tests/feature/test_sosnet.py::TestSOSNet::test_jit[cpu-bfloat16]+call builtins.AssertionError tests/filters/test_canny.py::TestCanny::test_magnitude[cpu-bfloat16]+call builtins.RuntimeError tests/filters/test_canny.py::TestCanny::test_magnitude_hyst[cpu-bfloat16]+call builtins.AssertionError tests/filters/test_canny.py::TestCanny::test_magnitude_hyst_false[cpu-bfloat16]+call builtins.AssertionError tests/filters/test_canny.py::TestCanny::test_magnitude_threshold[cpu-bfloat16]+call builtins.RuntimeError tests/filters/test_canny.py::TestCanny::test_module[cpu-bfloat16]+call builtins.RuntimeError tests/filters/test_canny.py::TestCanny::test_noncontiguous[cpu-bfloat16-2]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_cardinality[cpu-bfloat16-same-2]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_cardinality[cpu-bfloat16-same-3]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_cardinality[cpu-bfloat16-same-6]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_cardinality[cpu-bfloat16-same-8]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_cardinality[cpu-bfloat16-valid-2]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_cardinality[cpu-bfloat16-valid-3]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_cardinality[cpu-bfloat16-valid-6]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_cardinality[cpu-bfloat16-valid-8]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_conv[cpu-bfloat16]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_even_sized_filter[cpu-bfloat16-same]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_even_sized_filter[cpu-bfloat16-valid]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_mean_filter[cpu-bfloat16-same]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_mean_filter[cpu-bfloat16-valid]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_mean_filter_2batch_2ch[cpu-bfloat16-same]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_mean_filter_2batch_2ch[cpu-bfloat16-valid]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_mix_sized_filter_padding_same[cpu-bfloat16-same]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_mix_sized_filter_padding_same[cpu-bfloat16-valid]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_noncontiguous[cpu-bfloat16-same]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_noncontiguous[cpu-bfloat16-valid]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_normalized_mean_filter[cpu-bfloat16-same]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_normalized_mean_filter[cpu-bfloat16-valid]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_smoke[cpu-bfloat16-same-False-circular]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_smoke[cpu-bfloat16-same-False-constant]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_smoke[cpu-bfloat16-same-False-reflect]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_smoke[cpu-bfloat16-same-False-replicate]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_smoke[cpu-bfloat16-same-True-circular]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_smoke[cpu-bfloat16-same-True-constant]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_smoke[cpu-bfloat16-same-True-reflect]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_smoke[cpu-bfloat16-same-True-replicate]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_smoke[cpu-bfloat16-valid-False-circular]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_smoke[cpu-bfloat16-valid-False-constant]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_smoke[cpu-bfloat16-valid-False-reflect]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_smoke[cpu-bfloat16-valid-False-replicate]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_smoke[cpu-bfloat16-valid-True-circular]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_smoke[cpu-bfloat16-valid-True-constant]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_smoke[cpu-bfloat16-valid-True-reflect]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_smoke[cpu-bfloat16-valid-True-replicate]+call builtins.AssertionError tests/filters/test_gaussian.py::TestGaussianBlur2d::test_separable_vs_non_separable_small_kernel[cpu-bfloat16]+call builtins.AssertionError tests/filters/test_gaussian.py::test_gaussian[cpu-bfloat16-11-11.0-3.0-expected3]+call builtins.AssertionError tests/filters/test_gaussian.py::test_gaussian[cpu-bfloat16-11-5.0-8.0-expected2]+call builtins.AssertionError tests/filters/test_gaussian.py::test_gaussian[cpu-bfloat16-11-5.0-None-expected1]+call builtins.AssertionError tests/filters/test_gaussian.py::test_gaussian[cpu-bfloat16-5-1.0-None-expected0]+call builtins.AssertionError tests/filters/test_otsu_thresholding.py::TestOtsuThreshold::test_differentiable_tensor_otsu[cpu-bfloat16]+call kornia.core.exceptions.BaseError tests/geometry/calibration/test_pnp.py::TestSolvePnpDlt::test_pred_world_to_cam[cpu-bfloat16-20]+call kornia.core.exceptions.BaseError tests/geometry/calibration/test_pnp.py::TestSolvePnpDlt::test_pred_world_to_cam[cpu-bfloat16-6]+call kornia.core.exceptions.BaseError tests/geometry/calibration/test_pnp.py::TestSolvePnpDlt::test_pred_world_to_cam_weighted[cpu-bfloat16-16]+call kornia.core.exceptions.BaseError tests/geometry/calibration/test_pnp.py::TestSolvePnpDlt::test_pred_world_to_cam_weighted[cpu-bfloat16-20]+call kornia.core.exceptions.BaseError tests/geometry/calibration/test_pnp.py::TestSolvePnpDlt::test_pred_world_to_cam_weighted_rand[cpu-bfloat16-25]+call kornia.core.exceptions.BaseError tests/geometry/calibration/test_pnp.py::TestSolvePnpDlt::test_project[cpu-bfloat16-20]+call kornia.core.exceptions.BaseError tests/geometry/calibration/test_pnp.py::TestSolvePnpDlt::test_project[cpu-bfloat16-6]+call kornia.core.exceptions.BaseError tests/geometry/calibration/test_pnp.py::TestSolvePnpDlt::test_smoke[cpu-bfloat16-20]+call kornia.core.exceptions.BaseError tests/geometry/calibration/test_pnp.py::TestSolvePnpDlt::test_smoke[cpu-bfloat16-6]+call builtins.AssertionError tests/geometry/calibration/test_undistort.py::TestUndistortPoints::test_opencv_all_coeff[cpu-bfloat16]+call builtins.AssertionError tests/geometry/calibration/test_undistort.py::TestUndistortPoints::test_opencv_five_coeff[cpu-bfloat16]+call builtins.AssertionError tests/geometry/calibration/test_undistort.py::TestUndistortPoints::test_opencv_stereo[cpu-bfloat16]+call builtins.AssertionError tests/geometry/camera/test_distortion.py::TestDistortionKannalaBrandt::test_distort_points_roundtrip[cpu-bfloat16]+call builtins.AssertionError tests/geometry/camera/test_distortion.py::TestDistortionKannalaBrandt::test_dx_distort_points_kannala_brandt[cpu-bfloat16]+call builtins.AssertionError tests/geometry/camera/test_pinhole.py::TestCam2Pixel::test_consistency[cpu-bfloat16-1]+call builtins.AssertionError tests/geometry/camera/test_pinhole.py::TestCam2Pixel::test_consistency[cpu-bfloat16-2]+call builtins.AssertionError tests/geometry/camera/test_pinhole.py::TestCam2Pixel::test_consistency[cpu-bfloat16-5]+call builtins.AssertionError tests/geometry/camera/test_pinhole.py::TestPinholeCamera::test_pinhole_camera_project_and_unproject[cpu-bfloat16]+call builtins.AssertionError tests/geometry/camera/test_pinhole.py::TestPixel2Cam::test_consistency[cpu-bfloat16-1]+call builtins.AssertionError tests/geometry/camera/test_pinhole.py::TestPixel2Cam::test_consistency[cpu-bfloat16-2]+call builtins.AssertionError tests/geometry/camera/test_pinhole.py::TestPixel2Cam::test_consistency[cpu-bfloat16-5]+call builtins.AssertionError tests/geometry/camera/test_stereo.py::TestStereoCamera::test_reproject_disparity_to_3D_real[1-cpu-bfloat16]+call builtins.AssertionError tests/geometry/camera/test_stereo.py::TestStereoCamera::test_reproject_disparity_to_3D_real[2-cpu-bfloat16]+call builtins.AssertionError tests/geometry/camera/test_stereo.py::TestStereoCamera::test_reproject_disparity_to_3D_real[4-cpu-bfloat16]+call builtins.AssertionError tests/geometry/camera/test_stereo.py::TestStereoCamera::test_reproject_disparity_to_3D_simple[1-cpu-bfloat16]+call builtins.AssertionError tests/geometry/camera/test_stereo.py::TestStereoCamera::test_reproject_disparity_to_3D_simple[2-cpu-bfloat16]+call builtins.AssertionError tests/geometry/camera/test_stereo.py::TestStereoCamera::test_reproject_disparity_to_3D_simple[4-cpu-bfloat16]+call builtins.AssertionError tests/geometry/camera/test_stereo.py::TestStereoCamera::test_reproject_disparity_to_3D_smoke[1-cpu-bfloat16]+call builtins.AssertionError tests/geometry/camera/test_stereo.py::TestStereoCamera::test_reproject_disparity_to_3D_smoke[2-cpu-bfloat16]+call builtins.AssertionError tests/geometry/camera/test_stereo.py::TestStereoCamera::test_reproject_disparity_to_3D_smoke[4-cpu-bfloat16]+call builtins.AssertionError tests/geometry/camera/test_stereo.py::TestStereoCamera::test_stereo_camera_attributes_real[1-cpu-bfloat16]+call builtins.AssertionError tests/geometry/camera/test_stereo.py::TestStereoCamera::test_stereo_camera_attributes_real[2-cpu-bfloat16]+call builtins.AssertionError tests/geometry/camera/test_stereo.py::TestStereoCamera::test_stereo_camera_attributes_real[4-cpu-bfloat16]+call builtins.AssertionError tests/geometry/camera/test_stereo.py::TestStereoCamera::test_stereo_camera_attributes_smoke[1-cpu-bfloat16]+call builtins.AssertionError tests/geometry/camera/test_stereo.py::TestStereoCamera::test_stereo_camera_attributes_smoke[2-cpu-bfloat16]+call builtins.AssertionError tests/geometry/camera/test_stereo.py::TestStereoCamera::test_stereo_camera_attributes_smoke[4-cpu-bfloat16]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestDecomposeEssentialMatrix::test_shape[cpu-bfloat16-batch_shape0]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestDecomposeEssentialMatrix::test_shape[cpu-bfloat16-batch_shape1]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestDecomposeEssentialMatrix::test_shape[cpu-bfloat16-batch_shape2]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestDecomposeEssentialMatrix::test_shape[cpu-bfloat16-batch_shape3]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestDecomposeEssentialMatrix::test_smoke[cpu-bfloat16]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestFindEssential::test_degenerate_case[cpu-bfloat16-10-5]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestFindEssential::test_degenerate_case[cpu-bfloat16-5-5]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestFindEssential::test_epipolar_constraint[cpu-bfloat16]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestFindEssential::test_shape[cpu-bfloat16-1-5]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestFindEssential::test_shape[cpu-bfloat16-16-5]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestFindEssential::test_shape[cpu-bfloat16-2-6]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestFindEssential::test_shape[cpu-bfloat16-3-7]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestFindEssential::test_shape_noweights[cpu-bfloat16-1-5]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestFindEssential::test_shape_noweights[cpu-bfloat16-2-6]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestFindEssential::test_shape_noweights[cpu-bfloat16-3-7]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestFindEssential::test_smoke[cpu-bfloat16]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestFindEssential::test_synthetic_sampson[cpu-bfloat16]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssential::test_shape[cpu-bfloat16-batch_shape0]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssential::test_shape[cpu-bfloat16-batch_shape1]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssential::test_shape[cpu-bfloat16-batch_shape2]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssential::test_shape[cpu-bfloat16-batch_shape3]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssential::test_smoke[cpu-bfloat16]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssential::test_two_view[cpu-bfloat16]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssentialChooseSolution::test_masking[cpu-bfloat16]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssentialChooseSolution::test_shape[cpu-bfloat16-1-3]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssentialChooseSolution::test_shape[cpu-bfloat16-2-3]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssentialChooseSolution::test_shape[cpu-bfloat16-2-8]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssentialChooseSolution::test_shape[cpu-bfloat16-3-2]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssentialChooseSolution::test_smoke[cpu-bfloat16]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssentialChooseSolution::test_two_view[cpu-bfloat16]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssentialChooseSolution::test_unbatched[cpu-bfloat16-10]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssentialChooseSolution::test_unbatched[cpu-bfloat16-15]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssentialChooseSolution::test_unbatched[cpu-bfloat16-20]+call builtins.AssertionError tests/geometry/epipolar/test_fundamental.py::TestComputeCorrespondEpilines::test_opencv[cpu-bfloat16]+call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_7point_opencv[cpu-bfloat16]+call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_opencv_svd[cpu-bfloat16]+call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_shape[cpu-bfloat16-1-8]+call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_shape[cpu-bfloat16-2-9]+call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_shape[cpu-bfloat16-3-10]+call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_shape_7point[cpu-bfloat16-1]+call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_shape_7point[cpu-bfloat16-2]+call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_shape_7point[cpu-bfloat16-3]+call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_shape_noweights[cpu-bfloat16-1-8]+call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_shape_noweights[cpu-bfloat16-2-8]+call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_shape_noweights[cpu-bfloat16-3-10]+call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_smoke[cpu-bfloat16]+call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_synthetic_sampson[cpu-bfloat16]+call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_synthetic_sampson_7point[cpu-bfloat16]+call builtins.AssertionError tests/geometry/epipolar/test_fundamental.py::TestFundamentlFromEssential::test_from_to_essential[cpu-bfloat16]+call builtins.AssertionError tests/geometry/epipolar/test_projection.py::TestKRtFromProjection::test_projection_from_krt[cpu-bfloat16]+call builtins.NotImplementedError tests/geometry/epipolar/test_projection.py::TestKRtFromProjection::test_shape[cpu-bfloat16-1]+call builtins.NotImplementedError tests/geometry/epipolar/test_projection.py::TestKRtFromProjection::test_shape[cpu-bfloat16-2]+call builtins.NotImplementedError tests/geometry/epipolar/test_projection.py::TestKRtFromProjection::test_shape[cpu-bfloat16-4]+call builtins.NotImplementedError tests/geometry/epipolar/test_projection.py::TestKRtFromProjection::test_simple[cpu-bfloat16]+call builtins.NotImplementedError tests/geometry/epipolar/test_projection.py::TestKRtFromProjection::test_smoke[cpu-bfloat16]+call builtins.NotImplementedError tests/geometry/epipolar/test_projection.py::TestProjectionFromKRt::test_krt_from_projection[cpu-bfloat16]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_cardinality[cpu-bfloat16-input_shape0]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_cardinality[cpu-bfloat16-input_shape1]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_cardinality[cpu-bfloat16-input_shape2]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_cardinality[cpu-bfloat16-input_shape3]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_derived_state_moves_and_serializes[cpu-bfloat16]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_exception[cpu-bfloat16-1]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_exception[cpu-bfloat16-2]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_exception[cpu-bfloat16-5]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_exp[cpu-bfloat16-1]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_exp[cpu-bfloat16-2]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_exp[cpu-bfloat16-5]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_exp[cpu-bfloat16-None]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_exp_log[cpu-bfloat16-1]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_exp_log[cpu-bfloat16-2]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_exp_log[cpu-bfloat16-5]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_exp_log[cpu-bfloat16-None]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_from_matrix[cpu-bfloat16-1]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_from_matrix[cpu-bfloat16-2]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_from_matrix[cpu-bfloat16-5]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_from_matrix[cpu-bfloat16-None]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_init[cpu-bfloat16-1]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_init[cpu-bfloat16-2]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_init[cpu-bfloat16-5]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_init[cpu-bfloat16-None]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_inverse[cpu-bfloat16-1]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_inverse[cpu-bfloat16-2]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_inverse[cpu-bfloat16-5]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_inverse[cpu-bfloat16-None]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_log[cpu-bfloat16-1]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_log[cpu-bfloat16-2]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_log[cpu-bfloat16-5]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_log[cpu-bfloat16-None]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_matrix[cpu-bfloat16-1]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_matrix[cpu-bfloat16-2]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_matrix[cpu-bfloat16-5]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_matrix[cpu-bfloat16-None]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_mul[cpu-bfloat16-1]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_mul[cpu-bfloat16-2]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_mul[cpu-bfloat16-5]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_mul[cpu-bfloat16-None]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_mul_vector[cpu-bfloat16-1]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_mul_vector[cpu-bfloat16-2]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_mul_vector[cpu-bfloat16-5]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_mul_vector[cpu-bfloat16-None]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_random[cpu-bfloat16-1]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_random[cpu-bfloat16-2]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_random[cpu-bfloat16-5]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_random[cpu-bfloat16-None]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_trans[cpu-bfloat16-1]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_trans[cpu-bfloat16-2]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_trans[cpu-bfloat16-5]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_trans[cpu-bfloat16-None]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_trans_x[cpu-bfloat16-1]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_trans_x[cpu-bfloat16-2]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_trans_x[cpu-bfloat16-5]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_trans_x[cpu-bfloat16-None]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_trans_y[cpu-bfloat16-1]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_trans_y[cpu-bfloat16-2]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_trans_y[cpu-bfloat16-5]+call builtins.RuntimeError tests/geometry/liegroup/test_se2.py::TestSe2::test_trans_y[cpu-bfloat16-None]+call builtins.AssertionError tests/geometry/liegroup/test_se3.py::TestSe3::test_exp_log[cpu-bfloat16-5]+call builtins.AssertionError tests/geometry/liegroup/test_se3.py::TestSe3::test_mul[cpu-bfloat16-2]+call builtins.AssertionError tests/geometry/liegroup/test_se3.py::TestSe3::test_mul[cpu-bfloat16-None]+call builtins.AssertionError tests/geometry/liegroup/test_se3.py::TestSe3::test_mul_point[cpu-bfloat16-1]+call builtins.AssertionError tests/geometry/liegroup/test_se3.py::TestSe3::test_mul_point[cpu-bfloat16-2]+call builtins.AssertionError tests/geometry/liegroup/test_se3.py::TestSe3::test_mul_point[cpu-bfloat16-5]+call builtins.AssertionError tests/geometry/liegroup/test_se3.py::TestSe3::test_mul_point[cpu-bfloat16-None]+call builtins.AssertionError tests/geometry/liegroup/test_se3.py::TestSe3::test_mul_vector[cpu-bfloat16-2]+call builtins.AssertionError tests/geometry/liegroup/test_se3.py::TestSe3::test_mul_vector[cpu-bfloat16-5]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_adjoint[cpu-bfloat16-1]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_adjoint[cpu-bfloat16-2]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_adjoint[cpu-bfloat16-5]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_adjoint[cpu-bfloat16-None]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_cardinality[cpu-bfloat16-cdtype0-input_shape0]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_cardinality[cpu-bfloat16-cdtype0-input_shape1]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_cardinality[cpu-bfloat16-cdtype0-input_shape2]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_cardinality[cpu-bfloat16-cdtype0-input_shape3]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_cardinality[cpu-bfloat16-cdtype1-input_shape0]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_cardinality[cpu-bfloat16-cdtype1-input_shape1]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_cardinality[cpu-bfloat16-cdtype1-input_shape2]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_cardinality[cpu-bfloat16-cdtype1-input_shape3]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_derived_state_moves_and_serializes[cpu-bfloat16]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_exception[cpu-bfloat16-cdtype0-1]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_exception[cpu-bfloat16-cdtype0-2]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_exception[cpu-bfloat16-cdtype0-5]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_exception[cpu-bfloat16-cdtype1-1]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_exception[cpu-bfloat16-cdtype1-2]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_exception[cpu-bfloat16-cdtype1-5]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_exp[cpu-bfloat16-1]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_exp[cpu-bfloat16-2]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_exp[cpu-bfloat16-5]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_exp[cpu-bfloat16-None]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_exp_log[cpu-bfloat16-1]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_exp_log[cpu-bfloat16-2]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_exp_log[cpu-bfloat16-5]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_exp_log[cpu-bfloat16-None]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_from_matrix[cpu-bfloat16-1]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_from_matrix[cpu-bfloat16-2]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_from_matrix[cpu-bfloat16-5]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_from_matrix[cpu-bfloat16-None]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_init[cpu-bfloat16-cdtype0-1]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_init[cpu-bfloat16-cdtype0-2]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_init[cpu-bfloat16-cdtype0-5]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_init[cpu-bfloat16-cdtype0-None]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_init[cpu-bfloat16-cdtype1-1]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_init[cpu-bfloat16-cdtype1-2]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_init[cpu-bfloat16-cdtype1-5]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_init[cpu-bfloat16-cdtype1-None]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_matrix[cpu-bfloat16-1]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_matrix[cpu-bfloat16-2]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_matrix[cpu-bfloat16-5]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_matrix[cpu-bfloat16-None]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_matrix_cardinality[cpu-bfloat16-input_shape0]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_matrix_cardinality[cpu-bfloat16-input_shape1]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_matrix_cardinality[cpu-bfloat16-input_shape2]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_matrix_cardinality[cpu-bfloat16-input_shape3]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_mul[cpu-bfloat16-1]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_mul[cpu-bfloat16-2]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_mul[cpu-bfloat16-5]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_mul[cpu-bfloat16-None]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_mul_vector[cpu-bfloat16-1]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_mul_vector[cpu-bfloat16-2]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_mul_vector[cpu-bfloat16-5]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_mul_vector[cpu-bfloat16-None]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_random[cpu-bfloat16-1]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_random[cpu-bfloat16-2]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_random[cpu-bfloat16-5]+call builtins.RuntimeError tests/geometry/liegroup/test_so2.py::TestSo2::test_random[cpu-bfloat16-None]+call builtins.AssertionError tests/geometry/liegroup/test_so3.py::TestSo3::test_ortho[cpu-bfloat16-2]+call builtins.AssertionError tests/geometry/liegroup/test_so3.py::TestSo3::test_ortho[cpu-bfloat16-5]+call builtins.AssertionError tests/geometry/solvers/test_polynomial_solver.py::TestQuarticSolver::test_random[cpu-bfloat16]+call builtins.AssertionError tests/geometry/solvers/test_polynomial_solver.py::TestQuarticSolver::test_solve_quartic[cpu-bfloat16-coeffs0-expected_solutions0]+call builtins.AssertionError tests/geometry/solvers/test_polynomial_solver.py::TestQuarticSolver::test_solve_quartic[cpu-bfloat16-coeffs3-expected_solutions3]+call builtins.AssertionError tests/geometry/subpix/test_dsnt.py::TestRenderGaussian2d::test_normalized_coordinates[cpu-bfloat16]+call builtins.AssertionError tests/geometry/subpix/test_dsnt.py::TestRenderGaussian2d::test_pixel_coordinates[cpu-bfloat16]+call builtins.AssertionError tests/geometry/subpix/test_spatial_softargmax.py::TestConvQuadInterp3dModule::test_diag[cpu-bfloat16]+call builtins.AssertionError tests/geometry/subpix/test_spatial_softargmax.py::TestConvSoftArgmax2d::test_hot_diag[cpu-bfloat16]+call builtins.AssertionError tests/geometry/subpix/test_spatial_softargmax.py::TestConvSoftArgmax2d::test_hot_diag_norm[cpu-bfloat16]+call builtins.NotImplementedError tests/geometry/subpix/test_spatial_softargmax.py::TestConvSoftArgmax3d::test_cold_diag[cpu-bfloat16]+call builtins.NotImplementedError tests/geometry/subpix/test_spatial_softargmax.py::TestConvSoftArgmax3d::test_cold_diag_norm[cpu-bfloat16]+call builtins.NotImplementedError tests/geometry/subpix/test_spatial_softargmax.py::TestConvSoftArgmax3d::test_hot_diag[cpu-bfloat16]+call builtins.NotImplementedError tests/geometry/subpix/test_spatial_softargmax.py::TestConvSoftArgmax3d::test_hot_diag_norm[cpu-bfloat16]+call builtins.NotImplementedError tests/geometry/subpix/test_spatial_softargmax.py::TestConvSoftArgmax3d::test_smoke[cpu-bfloat16]+call builtins.NotImplementedError tests/geometry/subpix/test_spatial_softargmax.py::TestConvSoftArgmax3d::test_smoke_with_val[cpu-bfloat16]+call builtins.AssertionError tests/geometry/subpix/test_spatial_softargmax.py::TestSpatialSoftArgmax2d::test_end_to_end[cpu-bfloat16]+call builtins.AssertionError tests/geometry/test_bbox.py::TestTransformBoxes2D::test_transform_boxes[cpu-bfloat16]+call builtins.AssertionError tests/geometry/test_bbox.py::TestTransformBoxes2D::test_transform_boxes_wh[cpu-bfloat16]+call builtins.AssertionError tests/geometry/test_bbox.py::TestTransformBoxes2D::test_transform_multiple_boxes[cpu-bfloat16]+call builtins.AssertionError tests/geometry/test_boxes.py::TestTransformBoxes2D::test_transform_boxes[cpu-bfloat16]+call builtins.AssertionError tests/geometry/test_boxes.py::TestTransformBoxes2D::test_transform_boxes_[cpu-bfloat16]+call builtins.AssertionError tests/geometry/test_boxes.py::TestTransformBoxes2D::test_transform_multiple_boxes[cpu-bfloat16]+call builtins.AssertionError tests/geometry/test_boxes.py::TestTransformBoxes3D::test_transform_boxes[cpu-bfloat16]+call builtins.AssertionError tests/geometry/test_boxes.py::TestTransformBoxes3D::test_transform_boxes_[cpu-bfloat16]+call builtins.AssertionError tests/geometry/test_boxes.py::TestTransformBoxes3D::test_transform_multiple_boxes[cpu-bfloat16]+call builtins.AssertionError tests/geometry/test_conversions.py::TestAngleAxisToRotationMatrix::test_axis_angle_to_rotation_matrix[cpu-bfloat16]+call builtins.AssertionError tests/geometry/test_conversions.py::TestCARKitToColmap::test_everything[cpu-bfloat16]+call builtins.AssertionError tests/geometry/test_conversions.py::TestCamtoworldGraphicsToVision::test_everything[cpu-bfloat16-1]+call builtins.AssertionError tests/geometry/test_conversions.py::TestCamtoworldGraphicsToVision::test_everything[cpu-bfloat16-2]+call builtins.AssertionError tests/geometry/test_conversions.py::TestCamtoworldGraphicsToVision::test_everything[cpu-bfloat16-3]+call builtins.AssertionError tests/geometry/test_conversions.py::TestCamtoworldRtToPoseRt::test_everything[cpu-bfloat16-1]+call builtins.AssertionError tests/geometry/test_conversions.py::TestCamtoworldRtToPoseRt::test_everything[cpu-bfloat16-2]+call builtins.AssertionError tests/geometry/test_conversions.py::TestCamtoworldRtToPoseRt::test_everything[cpu-bfloat16-3]+call builtins.AssertionError tests/geometry/test_conversions.py::TestNormalizePixelCoordinates::test_list[cpu-bfloat16]+call builtins.AssertionError tests/geometry/test_conversions.py::TestNormalizePixelCoordinates::test_tensor_bhw2[cpu-bfloat16]+call builtins.AssertionError tests/geometry/test_conversions.py::TestQuaternionExpToLog::test_back_and_forth[cpu-bfloat16]+call builtins.AssertionError tests/geometry/test_conversions.py::TestQuaternionFromEuler::test_values[cpu-bfloat16]+call builtins.AssertionError tests/geometry/test_conversions.py::TestRadDegConversions::test_deg2rad[cpu-bfloat16-batch_shape0]+call builtins.AssertionError tests/geometry/test_conversions.py::TestRadDegConversions::test_deg2rad[cpu-bfloat16-batch_shape1]+call builtins.AssertionError tests/geometry/test_conversions.py::TestRadDegConversions::test_deg2rad[cpu-bfloat16-batch_shape2]+call builtins.AssertionError tests/geometry/test_conversions.py::TestRadDegConversions::test_deg2rad[cpu-bfloat16-batch_shape3]+call builtins.AssertionError tests/geometry/test_conversions.py::TestRotationMatrixToAngleAxis::test_rand_quaternion_gradcheck[cpu-bfloat16-1]+call builtins.AssertionError tests/geometry/test_conversions.py::TestRotationMatrixToAngleAxis::test_rand_quaternion_gradcheck[cpu-bfloat16-2]+call builtins.AssertionError tests/geometry/test_conversions.py::TestRotationMatrixToAngleAxis::test_rand_quaternion_gradcheck[cpu-bfloat16-5]+call builtins.AssertionError tests/geometry/test_conversions.py::TestRotationMatrixToAngleAxis::test_rotation_matrix_to_axis_angle[cpu-bfloat16]+call builtins.AssertionError tests/geometry/test_conversions.py::TestRotationMatrixToQuaternion::test_corner_case[cpu-bfloat16]+call builtins.AssertionError tests/geometry/test_depth.py::TestDepthTo3d::test_unproject_normalized[cpu-bfloat16]+call builtins.AssertionError tests/geometry/test_depth.py::TestDepthToNormals::test_simple_normalized[cpu-bfloat16]+call builtins.AssertionError tests/geometry/test_depth.py::TestWarpFrameDepth::test_translation_normalized[cpu-bfloat16]+call builtins.AssertionError tests/geometry/test_depth_warper.py::TestDepthWarper::test_compute_subpixel_step[cpu-bfloat16-1]+call builtins.AssertionError tests/geometry/test_depth_warper.py::TestDepthWarper::test_compute_subpixel_step[cpu-bfloat16-2]+call builtins.AssertionError tests/geometry/test_homography.py::TestFindHomographyDLT::test_clean_points_lu[cpu-bfloat16-1]+call builtins.AssertionError tests/geometry/test_homography.py::TestFindHomographyDLT::test_clean_points_lu[cpu-bfloat16-2]+call builtins.AssertionError tests/geometry/test_homography.py::TestFindHomographyDLT::test_clean_points_lu[cpu-bfloat16-5]+call builtins.AssertionError tests/geometry/test_homography.py::TestFindHomographyDLT::test_clean_points_svd[cpu-bfloat16-1]+call builtins.AssertionError tests/geometry/test_homography.py::TestFindHomographyDLT::test_clean_points_svd[cpu-bfloat16-2]+call builtins.AssertionError tests/geometry/test_homography.py::TestFindHomographyDLT::test_clean_points_svd[cpu-bfloat16-5]+call builtins.AssertionError tests/geometry/test_homography.py::TestFindHomographyDLT::test_scaled_fixed_points[cpu-bfloat16]+call builtins.AssertionError tests/geometry/test_homography.py::TestFindHomographyDLTIter::test_clean_points[cpu-bfloat16-1]+call builtins.AssertionError tests/geometry/test_homography.py::TestFindHomographyDLTIter::test_clean_points[cpu-bfloat16-2]+call builtins.AssertionError tests/geometry/test_homography.py::TestFindHomographyDLTIter::test_dirty_points_and_gradcheck[cpu-bfloat16-1]+call builtins.AssertionError tests/geometry/test_homography.py::TestFindHomographyDLTIter::test_dirty_points_and_gradcheck[cpu-bfloat16-2]+call builtins.AssertionError tests/geometry/test_homography.py::TestFindHomographyFromLinesDLT::test_clean_points[cpu-bfloat16-1]+call builtins.AssertionError tests/geometry/test_homography.py::TestFindHomographyFromLinesDLT::test_clean_points[cpu-bfloat16-2]+call builtins.AssertionError tests/geometry/test_homography.py::TestFindHomographyFromLinesDLT::test_clean_points[cpu-bfloat16-5]+call builtins.AssertionError tests/geometry/test_homography.py::TestFindHomographyFromLinesDLT::test_clean_points_iter[cpu-bfloat16-1]+call builtins.AssertionError tests/geometry/test_homography.py::TestFindHomographyFromLinesDLT::test_clean_points_iter[cpu-bfloat16-2]+call builtins.AssertionError tests/geometry/test_homography.py::TestFindHomographyFromLinesDLT::test_clean_points_iter[cpu-bfloat16-5]+call builtins.AssertionError tests/geometry/test_line.py::TestFitLine::test_fit_line2[cpu-bfloat16]+call builtins.RuntimeError tests/geometry/test_pose.py::TestNamedPose::test_from_matrix[cpu-bfloat16]+call builtins.RuntimeError tests/geometry/test_pose.py::TestNamedPose::test_from_rt[cpu-bfloat16]+call builtins.AssertionError tests/geometry/test_quaternion.py::TestQuaternion::test_from_to_euler_values[cpu-bfloat16]+call builtins.AssertionError tests/geometry/test_quaternion.py::TestQuaternion::test_inverse[cpu-bfloat16-5]+call builtins.AssertionError tests/geometry/test_quaternion.py::TestQuaternion::test_pow[cpu-bfloat16-5]+call builtins.AssertionError tests/geometry/test_quaternion.py::TestQuaternion::test_to_axis_angle[cpu-bfloat16-1]+call builtins.AssertionError tests/geometry/test_quaternion.py::TestQuaternion::test_to_axis_angle[cpu-bfloat16-2]+call builtins.AssertionError tests/geometry/test_quaternion.py::TestQuaternion::test_to_axis_angle[cpu-bfloat16-5]+call builtins.AssertionError tests/geometry/test_quaternion.py::TestQuaternion::test_to_axis_angle[cpu-bfloat16-None]+call builtins.AssertionError tests/geometry/test_quaternion.py::TestQuaternionAverage::test_single_quaternion_returns_itself[cpu-bfloat16]+call builtins.NotImplementedError tests/geometry/test_ransac.py::TestRANSACEssential::test_forward_enforces_essential_constraint[cpu-bfloat16]+call builtins.NotImplementedError tests/geometry/test_ransac.py::TestRANSACEssential::test_polish_enforces_essential_constraint[cpu-bfloat16]+call builtins.NotImplementedError tests/geometry/test_ransac.py::TestRANSACEssential::test_smoke[cpu-bfloat16]+call builtins.NotImplementedError tests/geometry/test_ransac.py::TestRANSACFundamental::test_smoke[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_affine.py::TestAffine2d::test_affine_rotate_translate[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_affine.py::TestRescale::test_downscale_values[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_affine.py::TestRescale::test_downscale_values_AA[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_affine.py::TestRotate::test_angle90[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_affine.py::TestRotate::test_angle90_batch2[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_affine.py::TestRotate::test_angle90_batch2_broadcast[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_affine.py::TestShear::test_shear_batch2[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_affine.py::TestShear::test_shear_batch2_broadcast[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_affine.py::TestShear::test_shear_x[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_affine.py::TestShear::test_shear_y[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_affine.py::TestTranslate::test_dxdy[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_affine.py::TestTranslate::test_dxdy_batch[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_affine.py::TestTranslate::test_dxdy_batch_broadcast[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_crop2d.py::TestCenterCrop::test_center_crop_h2_w4[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_crop2d.py::TestCenterCrop::test_center_crop_h4_w2[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_crop2d.py::TestCenterCrop::test_center_crop_h4_w2_batch[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_crop2d.py::TestCropAndResize::test_align_corners_false[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_crop2d.py::TestCropAndResize::test_align_corners_true[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_crop2d.py::TestCropAndResize::test_crop_batch[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_crop2d.py::TestCropAndResize::test_crop_batch_broadcast[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_crop2d.py::TestCropAndResize::test_crop_non_parallel_box[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_crop2d.py::TestCropByBoxes::test_crop_by_boxes_resizing[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_crop2d.py::TestCropByTransform::test_crop_by_boxes_resizing[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_crop3d.py::TestCenterCrop3D::test_center_crop_357[cpu-bfloat16-crop_size0]+call builtins.AssertionError tests/geometry/transform/test_crop3d.py::TestCenterCrop3D::test_center_crop_357[cpu-bfloat16-crop_size1]+call builtins.AssertionError tests/geometry/transform/test_crop3d.py::TestCenterCrop3D::test_center_crop_357[cpu-bfloat16-crop_size2]+call builtins.AssertionError tests/geometry/transform/test_crop3d.py::TestCenterCrop3D::test_center_crop_357_batch[cpu-bfloat16-crop_size0]+call builtins.AssertionError tests/geometry/transform/test_crop3d.py::TestCenterCrop3D::test_center_crop_357_batch[cpu-bfloat16-crop_size1]+call builtins.AssertionError tests/geometry/transform/test_crop3d.py::TestCenterCrop3D::test_center_crop_357_batch[cpu-bfloat16-crop_size2]+call builtins.AssertionError tests/geometry/transform/test_crop3d.py::TestCropByBoxes3D::test_crop_by_boxes_no_resizing[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_crop3d.py::TestCropByBoxes3D::test_crop_by_boxes_resizing[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_elastic_transform.py::TestElasticTransform::test_values[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_homography_warper.py::TestHomographyWarper3D::test_normalize_homography_identity[cpu-bfloat16-1]+call builtins.AssertionError tests/geometry/transform/test_homography_warper.py::TestHomographyWarper3D::test_normalize_homography_identity[cpu-bfloat16-3]+call builtins.AssertionError tests/geometry/transform/test_homography_warper.py::TestHomographyWarper::test_homography_warper[cpu-bfloat16-1]+call builtins.AssertionError tests/geometry/transform/test_homography_warper.py::TestHomographyWarper::test_homography_warper[cpu-bfloat16-2]+call builtins.AssertionError tests/geometry/transform/test_homography_warper.py::TestHomographyWarper::test_homography_warper[cpu-bfloat16-3]+call builtins.AssertionError tests/geometry/transform/test_homography_warper.py::TestHomographyWarper::test_normalize_homography_identity[cpu-bfloat16-1]+call builtins.AssertionError tests/geometry/transform/test_homography_warper.py::TestHomographyWarper::test_normalize_homography_identity[cpu-bfloat16-3]+call builtins.AssertionError tests/geometry/transform/test_homography_warper.py::TestHomographyWarper::test_translation[cpu-bfloat16-shape1]+call builtins.AssertionError tests/geometry/transform/test_homography_warper.py::TestHomographyWarper::test_translation[cpu-bfloat16-shape3]+call builtins.AssertionError tests/geometry/transform/test_imgwarp.py::TestGetPerspectiveTransform::test_back_and_forth[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_imgwarp.py::TestInvertAffineTransform::test_rot90[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_imgwarp.py::TestInvertAffineTransform::test_rot90_batch[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_imgwarp.py::TestRotationMatrix2d::test_90deg_rotation[cpu-bfloat16-1]+call builtins.AssertionError tests/geometry/transform/test_imgwarp.py::TestRotationMatrix2d::test_90deg_rotation[cpu-bfloat16-2]+call builtins.AssertionError tests/geometry/transform/test_imgwarp.py::TestRotationMatrix2d::test_90deg_rotation[cpu-bfloat16-5]+call builtins.AssertionError tests/geometry/transform/test_imgwarp.py::TestRotationMatrix2d::test_rotation_90deg_and_scale[cpu-bfloat16-1]+call builtins.AssertionError tests/geometry/transform/test_imgwarp.py::TestRotationMatrix2d::test_rotation_90deg_and_scale[cpu-bfloat16-2]+call builtins.AssertionError tests/geometry/transform/test_imgwarp.py::TestRotationMatrix2d::test_rotation_90deg_and_scale[cpu-bfloat16-5]+call builtins.AssertionError tests/geometry/transform/test_imgwarp.py::TestWarpAffine::test_rotation_inverse[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_imgwarp.py::TestWarpPerspective::test_convention_normalize_invert_equivalence[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_imgwarp.py::TestWarpPerspective::test_crop_center_resize[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_imgwarp.py::TestWarpPerspective::test_rotation_inverse[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_imgwarp.py::TestWarpPerspective::test_translation[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_imgwarp.py::TestWarpPerspective::test_translation_normalized[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_imgwarp3d.py::TestGetRotationMatrix3d::test_rot90x[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_imgwarp3d.py::TestGetRotationMatrix3d::test_rot90y[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_imgwarp3d.py::TestGetRotationMatrix3d::test_rot90z[cpu-bfloat16]+call builtins.AssertionError tests/geometry/transform/test_imgwarp3d.py::TestPerspectiveTransform3D::test_get_perspective_transform3d_2[cpu-bfloat16-1]+call builtins.AssertionError tests/image/test_draw.py::TestFillConvexPolygon::test_circle[cpu-bfloat16]+call builtins.AssertionError tests/image/test_draw.py::TestFillConvexPolygon::test_ellipse[cpu-bfloat16]+call builtins.AssertionError tests/image/test_draw.py::TestFillConvexPolygon::test_out_of_bounds_rectangle[cpu-bfloat16]+call builtins.TypeError tests/image/test_image_utils.py::test_tensor_to_image_contiguous[cpu-bfloat16]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_axis_angle[cpu-bfloat16--45.0-x]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_axis_angle[cpu-bfloat16--45.0-y]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_axis_angle[cpu-bfloat16--45.0-z]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_axis_angle[cpu-bfloat16-45-x]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_axis_angle[cpu-bfloat16-45-y]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_axis_angle[cpu-bfloat16-45-z]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_log_quaternion[cpu-bfloat16--179.9-x]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_log_quaternion[cpu-bfloat16--179.9-y]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_log_quaternion[cpu-bfloat16--179.9-z]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_log_quaternion[cpu-bfloat16--45.0-x]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_log_quaternion[cpu-bfloat16--45.0-y]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_log_quaternion[cpu-bfloat16--45.0-z]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_log_quaternion[cpu-bfloat16-45-x]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_log_quaternion[cpu-bfloat16-45-y]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_log_quaternion[cpu-bfloat16-45-z]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_quaternion[cpu-bfloat16--179.9-x]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_quaternion[cpu-bfloat16--179.9-y]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_quaternion[cpu-bfloat16--179.9-z]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_quaternion[cpu-bfloat16--45.0-x]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_quaternion[cpu-bfloat16--45.0-y]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_quaternion[cpu-bfloat16--45.0-z]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_quaternion[cpu-bfloat16-45-x]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_quaternion[cpu-bfloat16-45-y]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_quaternion[cpu-bfloat16-45-z]+call builtins.AssertionError tests/integration/test_conversions.py::TestQuaternionToAngleAxisToQuaternion::test_rotation[cpu-bfloat16-0]+call builtins.AssertionError tests/integration/test_conversions.py::TestQuaternionToAngleAxisToQuaternion::test_rotation[cpu-bfloat16-1]+call builtins.AssertionError tests/integration/test_conversions.py::TestQuaternionToAngleAxisToQuaternion::test_rotation[cpu-bfloat16-2]+call builtins.AssertionError tests/integration/test_conversions.py::TestQuaternionToRotationMatrixToAngleAxis::test_triplet_qam[cpu-bfloat16-0]+call builtins.AssertionError tests/integration/test_conversions.py::TestQuaternionToRotationMatrixToAngleAxis::test_triplet_qam[cpu-bfloat16-1]+call builtins.AssertionError tests/integration/test_conversions.py::TestQuaternionToRotationMatrixToAngleAxis::test_triplet_qam[cpu-bfloat16-2]+call builtins.AssertionError tests/integration/test_conversions.py::TestQuaternionToRotationMatrixToAngleAxis::test_triplet_qma[cpu-bfloat16-0]+call builtins.AssertionError tests/integration/test_conversions.py::TestQuaternionToRotationMatrixToAngleAxis::test_triplet_qma[cpu-bfloat16-1]+call builtins.AssertionError tests/integration/test_conversions.py::TestQuaternionToRotationMatrixToAngleAxis::test_triplet_qma[cpu-bfloat16-2]+call builtins.AssertionError tests/losses/test_dice.py::TestDiceLoss::test_weight[cpu-bfloat16-micro]+call builtins.AssertionError tests/losses/test_mutual_information.py::TestMutualInformationLoss::test_value_ranges[cpu-bfloat16]+call builtins.AssertionError tests/losses/test_total_variation.py::TestTotalVariation::test_tv_on_3d[cpu-bfloat16-pred0-expected0]+call builtins.AssertionError tests/losses/test_total_variation.py::TestTotalVariation::test_tv_on_4d[cpu-bfloat16-pred0-expected0]+call builtins.AssertionError tests/metrics/test_ssim3d.py::TestSSIM3d::test_unit[cpu-bfloat16]+call builtins.RuntimeError tests/models/test_kimi_vl.py::TestKimiVLComponents::test_moonvit[cpu-bfloat16]+call builtins.RuntimeError tests/models/test_kimi_vl.py::TestKimiVLModel::test_attention_mask[cpu-bfloat16]+call builtins.RuntimeError tests/models/test_kimi_vl.py::TestKimiVLModel::test_cardinality[cpu-bfloat16-1]+call builtins.RuntimeError tests/models/test_kimi_vl.py::TestKimiVLModel::test_cardinality[cpu-bfloat16-2]+call builtins.RuntimeError tests/models/test_kimi_vl.py::TestKimiVLModel::test_cardinality[cpu-bfloat16-4]+call builtins.RuntimeError tests/models/test_kimi_vl.py::TestKimiVLModel::test_variable_resolution[cpu-bfloat16]+call builtins.AssertionError tests/models/test_rt_detr.py::test_regvgg_optimize_for_deployment[cpu-bfloat16]+call builtins.AssertionError tests/sensors/camera/test_camera_model.py::TestPinholeCamera::test_project_unproject[cpu-bfloat16-2]diff --git a/testing/half_precision_xfails/cpu_float16.txt b/testing/half_precision_xfails/cpu_float16.txtnew file mode 100644index 000000000..6e0be2899--- /dev/null+++ b/testing/half_precision_xfails/cpu_float16.txt@@ -0,0 +1,596 @@+# known-failure-schema: 1+# profile: cpu-float16+# python: 3.11+# pytorch: 2.9.1+# os: Linux+# arch: x86_64+# seed-scheme: sha256-nodeid-v1+# pytest: 9.0.3+# numpy: 2.4.0+# pillow: 12.3.0+# generated-by: pytest tests/ --record-known-failures=<candidate> --known-failure-profile=cpu-float16++call builtins.NotImplementedError tests/augmentation/_3d/test_random_affine_3d.py::TestRandomAffine3D::test_batch_random_affine_3d[cpu-float16]+call builtins.AssertionError tests/augmentation/_3d/test_random_equalize_3d.py::TestRandomEqualize3D::test_batch_random_equalize[cpu-float16]+call builtins.AssertionError tests/augmentation/_3d/test_random_equalize_3d.py::TestRandomEqualize3D::test_random_equalize[cpu-float16]+call builtins.AssertionError tests/augmentation/_3d/test_random_rotation_3d.py::TestRandomRotation3D::test_batch_random_rotation[cpu-float16]+call builtins.AssertionError tests/augmentation/_3d/test_random_rotation_3d.py::TestRandomRotation3D::test_random_rotation[cpu-float16]+call builtins.RuntimeError tests/augmentation/container/test_augmentation_sequential.py::TestAugmentationSequential::test_autocast[cpu-float16-bbox-batch_prob0]+call builtins.RuntimeError tests/augmentation/container/test_augmentation_sequential.py::TestAugmentationSequential::test_autocast[cpu-float16-bbox-batch_prob1]+call builtins.RuntimeError tests/augmentation/container/test_augmentation_sequential.py::TestAugmentationSequential::test_autocast[cpu-float16-bbox-batch_prob2]+call builtins.RuntimeError tests/augmentation/container/test_augmentation_sequential.py::TestAugmentationSequential::test_autocast[cpu-float16-bbox_xywh-batch_prob0]+call builtins.RuntimeError tests/augmentation/container/test_augmentation_sequential.py::TestAugmentationSequential::test_autocast[cpu-float16-bbox_xywh-batch_prob1]+call builtins.RuntimeError tests/augmentation/container/test_augmentation_sequential.py::TestAugmentationSequential::test_autocast[cpu-float16-bbox_xywh-batch_prob2]+call builtins.RuntimeError tests/augmentation/container/test_augmentation_sequential.py::TestAugmentationSequential::test_autocast[cpu-float16-bbox_xyxy-batch_prob0]+call builtins.RuntimeError tests/augmentation/container/test_augmentation_sequential.py::TestAugmentationSequential::test_autocast[cpu-float16-bbox_xyxy-batch_prob1]+call builtins.RuntimeError tests/augmentation/container/test_augmentation_sequential.py::TestAugmentationSequential::test_autocast[cpu-float16-bbox_xyxy-batch_prob2]+call builtins.AssertionError tests/augmentation/container/test_augmentation_sequential.py::TestAugmentationSequential::test_random_crops[cpu-float16]+call builtins.AssertionError tests/augmentation/container/test_augmentation_sequential.py::TestAugmentationSequential::test_random_erasing[cpu-float16]+call builtins.RuntimeError tests/augmentation/container/test_patch_sequential.py::TestPatchSequential::test_autocast[cpu-float16]+call builtins.AssertionError tests/augmentation/container/test_sequential_aug.py::TestSequential::test_forward[cpu-float16-10]+call builtins.AssertionError tests/augmentation/container/test_sequential_aug.py::TestSequential::test_forward[cpu-float16-False]+call builtins.AssertionError tests/augmentation/container/test_sequential_aug.py::TestSequential::test_forward[cpu-float16-random_apply3]+call builtins.AssertionError tests/augmentation/container/test_video_sequential.py::TestVideoSequential::test_against_sequential[cpu-float16-BCTHW-augmentations2]+call builtins.AssertionError tests/augmentation/container/test_video_sequential.py::TestVideoSequential::test_against_sequential[cpu-float16-BTCHW-augmentations2]+call builtins.RuntimeError tests/augmentation/container/test_video_sequential.py::TestVideoSequential::test_autocast[cpu-float16-BCTHW]+call builtins.RuntimeError tests/augmentation/container/test_video_sequential.py::TestVideoSequential::test_autocast[cpu-float16-BTCHW]+call builtins.AssertionError tests/augmentation/container/test_video_sequential.py::TestVideoSequential::test_same_on_frame[cpu-float16-1-BCTHW-augmentations1]+call builtins.AssertionError tests/augmentation/container/test_video_sequential.py::TestVideoSequential::test_same_on_frame[cpu-float16-1-BTCHW-augmentations0]+call builtins.AssertionError tests/augmentation/container/test_video_sequential.py::TestVideoSequential::test_same_on_frame[cpu-float16-1-BTCHW-augmentations1]+call builtins.AssertionError tests/augmentation/container/test_video_sequential.py::TestVideoSequential::test_same_on_frame[cpu-float16-10-BCTHW-augmentations0]+call builtins.AssertionError tests/augmentation/container/test_video_sequential.py::TestVideoSequential::test_same_on_frame[cpu-float16-10-BCTHW-augmentations1]+call builtins.AssertionError tests/augmentation/container/test_video_sequential.py::TestVideoSequential::test_same_on_frame[cpu-float16-10-BTCHW-augmentations0]+call builtins.AssertionError tests/augmentation/container/test_video_sequential.py::TestVideoSequential::test_same_on_frame[cpu-float16-10-BTCHW-augmentations1]+call builtins.AssertionError tests/augmentation/container/test_video_sequential.py::TestVideoSequential::test_same_on_frame[cpu-float16-False-BCTHW-augmentations0]+call builtins.AssertionError tests/augmentation/container/test_video_sequential.py::TestVideoSequential::test_same_on_frame[cpu-float16-False-BCTHW-augmentations1]+call builtins.AssertionError tests/augmentation/container/test_video_sequential.py::TestVideoSequential::test_same_on_frame[cpu-float16-False-BTCHW-augmentations0]+call builtins.AssertionError tests/augmentation/container/test_video_sequential.py::TestVideoSequential::test_same_on_frame[cpu-float16-False-BTCHW-augmentations1]+call builtins.AssertionError tests/augmentation/container/test_video_sequential.py::TestVideoSequential::test_same_on_frame[cpu-float16-True-BCTHW-augmentations0]+call builtins.AssertionError tests/augmentation/container/test_video_sequential.py::TestVideoSequential::test_same_on_frame[cpu-float16-True-BCTHW-augmentations1]+call builtins.AssertionError tests/augmentation/container/test_video_sequential.py::TestVideoSequential::test_same_on_frame[cpu-float16-True-BTCHW-augmentations0]+call builtins.AssertionError tests/augmentation/container/test_video_sequential.py::TestVideoSequential::test_same_on_frame[cpu-float16-True-BTCHW-augmentations1]+call builtins.AssertionError tests/augmentation/container/test_video_sequential.py::TestVideoSequential::test_same_on_frame[cpu-float16-random_apply1-BCTHW-augmentations1]+call builtins.AssertionError tests/augmentation/container/test_video_sequential.py::TestVideoSequential::test_same_on_frame[cpu-float16-random_apply1-BTCHW-augmentations1]+call builtins.AssertionError tests/augmentation/container/test_video_sequential.py::TestVideoSequential::test_same_on_frame[cpu-float16-random_apply2-BCTHW-augmentations0]+call builtins.AssertionError tests/augmentation/container/test_video_sequential.py::TestVideoSequential::test_same_on_frame[cpu-float16-random_apply2-BCTHW-augmentations1]+call builtins.AssertionError tests/augmentation/container/test_video_sequential.py::TestVideoSequential::test_same_on_frame[cpu-float16-random_apply2-BTCHW-augmentations0]+call builtins.AssertionError tests/augmentation/container/test_video_sequential.py::TestVideoSequential::test_same_on_frame[cpu-float16-random_apply2-BTCHW-augmentations1]+call builtins.AssertionError tests/augmentation/test_augmentation.py::TestPlanckianJitter::test_planckian_jitter_batch[cpu-float16]+call builtins.AssertionError tests/augmentation/test_augmentation.py::TestPlanckianJitter::test_planckian_jitter_blackbody[cpu-float16]+call builtins.AssertionError tests/augmentation/test_augmentation.py::TestPlanckianJitter::test_planckian_jitter_cied[cpu-float16]+call builtins.AssertionError tests/augmentation/test_augmentation.py::TestPlanckianJitter::test_planckian_jitter_same_on_batch[cpu-float16]+call builtins.AssertionError tests/augmentation/test_augmentation.py::TestRandomGaussianIllumination::test_smoke[cpu-float16]+call builtins.AssertionError tests/augmentation/test_augmentation.py::TestRandomRGBShift::test_random_rgb_shift[cpu-float16]+call builtins.AssertionError tests/augmentation/test_augmentation.py::TestRandomRGBShift::test_random_rgb_shift_same_batch[cpu-float16]+call builtins.AssertionError tests/augmentation/test_augmentation_mix.py::TestRandomCutMixV2::test_random_mixup_beta0[cpu-float16]+call builtins.AssertionError tests/augmentation/test_augmentation_mix.py::TestRandomCutMixV2::test_random_mixup_num2[cpu-float16]+call builtins.AssertionError tests/augmentation/test_augmentation_mix.py::TestRandomMixUpV2::test_random_mixup_lam0[cpu-float16]+call builtins.AssertionError tests/augmentation/test_augmentation_mix.py::TestRandomMixUpV2::test_random_mixup_p1[cpu-float16]+call builtins.AssertionError tests/augmentation/test_augmentation_mix.py::TestRandomMixUpV2::test_random_mixup_same_on_batch[cpu-float16]+call builtins.AssertionError tests/augmentation/test_augmentation_mix.py::TestRandomMosaic::test_numerical[cpu-float16]+call builtins.RuntimeError tests/augmentation/test_auto_operation.py::TestAutoAugment::test_reproduce[cpu-float16]+call builtins.RuntimeError tests/augmentation/test_auto_operation.py::TestAutoAugment::test_sequential[cpu-float16]+call builtins.RuntimeError tests/augmentation/test_auto_operation.py::TestAutoAugment::test_smoke[cpu-float16-cifar10]+call builtins.RuntimeError tests/augmentation/test_auto_operation.py::TestAutoAugment::test_smoke[cpu-float16-imagenet]+call builtins.RuntimeError tests/augmentation/test_auto_operation.py::TestAutoAugment::test_smoke[cpu-float16-policy3]+call builtins.RuntimeError tests/augmentation/test_auto_operation.py::TestAutoAugment::test_smoke[cpu-float16-svhn]+call builtins.RuntimeError tests/augmentation/test_auto_operation.py::TestAutoAugment::test_transform_mat[cpu-float16]+call builtins.RuntimeError tests/augmentation/test_auto_operation.py::TestRandAugment::test_transform_mat[cpu-float16]+call builtins.RuntimeError tests/augmentation/test_auto_operation.py::TestRandAugment::test_transform_mat_repeated_policy[cpu-float16]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-float16-False-bilinear-circular-direction0-angle1]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-float16-False-bilinear-circular-direction0-angle2]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-float16-False-bilinear-circular-direction1-angle1]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-float16-False-bilinear-circular-direction1-angle2]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-float16-False-bilinear-constant-direction0-angle1]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-float16-False-bilinear-constant-direction0-angle2]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-float16-False-bilinear-constant-direction1-angle1]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-float16-False-bilinear-constant-direction1-angle2]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-float16-False-bilinear-replicate-direction0-angle1]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-float16-False-bilinear-replicate-direction0-angle2]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-float16-False-bilinear-replicate-direction1-angle1]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-float16-False-bilinear-replicate-direction1-angle2]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-float16-True-bilinear-circular-direction0-angle1]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-float16-True-bilinear-circular-direction0-angle2]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-float16-True-bilinear-circular-direction1-angle1]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-float16-True-bilinear-circular-direction1-angle2]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-float16-True-bilinear-constant-direction0-angle1]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-float16-True-bilinear-constant-direction0-angle2]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-float16-True-bilinear-constant-direction1-angle1]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-float16-True-bilinear-constant-direction1-angle2]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-float16-True-bilinear-replicate-direction0-angle1]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-float16-True-bilinear-replicate-direction0-angle2]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-float16-True-bilinear-replicate-direction1-angle1]+call builtins.AssertionError tests/augmentation/test_backward_3d.py::TestRandomMotionBlur3DBackward::test_param[cpu-float16-True-bilinear-replicate-direction1-angle2]+call builtins.RuntimeError tests/augmentation/test_base.py::TestGeometricAugmentationBase2D::test_autocast[cpu-float16-batch_prob0]+call builtins.RuntimeError tests/augmentation/test_base.py::TestGeometricAugmentationBase2D::test_autocast[cpu-float16-batch_prob1]+call builtins.RuntimeError tests/augmentation/test_base.py::TestGeometricAugmentationBase2D::test_autocast[cpu-float16-batch_prob2]+call builtins.AssertionError tests/augmentation/test_perspective_rand.py::TestRandomPerspective::test_transform_module_should_return_expected_transform[cpu-float16]+call builtins.AssertionError tests/augmentation/test_random_generator.py::TestColorJiggleGen::test_random_gen[cpu-float16]+call builtins.AssertionError tests/augmentation/test_random_generator.py::TestColorJiggleGen::test_random_gen_accumulative_additive_additive[cpu-float16]+call builtins.AssertionError tests/augmentation/test_random_generator.py::TestColorJiggleGen::test_same_on_batch[cpu-float16]+call builtins.AssertionError tests/augmentation/test_random_generator.py::TestRandomCropSizeGen::test_random_gen[cpu-float16]+call builtins.AssertionError tests/augmentation/test_random_generator.py::TestRandomCropSizeGen::test_same_on_batch[cpu-float16]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-None-beta1-1-200-200-0-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-None-beta1-1-200-200-0-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-None-beta1-1-200-200-0-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-None-beta1-1-200-200-0.5-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-None-beta1-1-200-200-0.5-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-None-beta1-1-200-200-0.5-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-None-beta1-1-200-200-1.0-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-None-beta1-1-200-200-1.0-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-None-beta1-1-200-200-1.0-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-None-beta1-3-200-200-0-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-None-beta1-3-200-200-0-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-None-beta1-3-200-200-0-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-None-beta1-3-200-200-0.5-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-None-beta1-3-200-200-0.5-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-None-beta1-3-200-200-0.5-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-None-beta1-3-200-200-1.0-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-None-beta1-3-200-200-1.0-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-None-beta1-3-200-200-1.0-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size1-beta1-1-200-200-0-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size1-beta1-1-200-200-0-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size1-beta1-1-200-200-0-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size1-beta1-1-200-200-0.5-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size1-beta1-1-200-200-0.5-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size1-beta1-1-200-200-0.5-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size1-beta1-1-200-200-1.0-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size1-beta1-1-200-200-1.0-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size1-beta1-1-200-200-1.0-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size1-beta1-3-200-200-0-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size1-beta1-3-200-200-0-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size1-beta1-3-200-200-0-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size1-beta1-3-200-200-0.5-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size1-beta1-3-200-200-0.5-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size1-beta1-3-200-200-0.5-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size1-beta1-3-200-200-1.0-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size1-beta1-3-200-200-1.0-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size1-beta1-3-200-200-1.0-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size2-beta1-1-200-200-0-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size2-beta1-1-200-200-0-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size2-beta1-1-200-200-0-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size2-beta1-1-200-200-0.5-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size2-beta1-1-200-200-0.5-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size2-beta1-1-200-200-0.5-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size2-beta1-1-200-200-1.0-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size2-beta1-1-200-200-1.0-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size2-beta1-1-200-200-1.0-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size2-beta1-3-200-200-0-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size2-beta1-3-200-200-0-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size2-beta1-3-200-200-0-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size2-beta1-3-200-200-0.5-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size2-beta1-3-200-200-0.5-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size2-beta1-3-200-200-0.5-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size2-beta1-3-200-200-1.0-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size2-beta1-3-200-200-1.0-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-False-cut_size2-beta1-3-200-200-1.0-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-None-beta1-1-200-200-0-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-None-beta1-1-200-200-0-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-None-beta1-1-200-200-0-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-None-beta1-1-200-200-0.5-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-None-beta1-1-200-200-0.5-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-None-beta1-1-200-200-0.5-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-None-beta1-1-200-200-1.0-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-None-beta1-1-200-200-1.0-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-None-beta1-1-200-200-1.0-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-None-beta1-3-200-200-0-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-None-beta1-3-200-200-0-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-None-beta1-3-200-200-0-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-None-beta1-3-200-200-0.5-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-None-beta1-3-200-200-0.5-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-None-beta1-3-200-200-0.5-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-None-beta1-3-200-200-1.0-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-None-beta1-3-200-200-1.0-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-None-beta1-3-200-200-1.0-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size1-beta1-1-200-200-0-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size1-beta1-1-200-200-0-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size1-beta1-1-200-200-0-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size1-beta1-1-200-200-0.5-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size1-beta1-1-200-200-0.5-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size1-beta1-1-200-200-0.5-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size1-beta1-1-200-200-1.0-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size1-beta1-1-200-200-1.0-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size1-beta1-1-200-200-1.0-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size1-beta1-3-200-200-0-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size1-beta1-3-200-200-0-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size1-beta1-3-200-200-0-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size1-beta1-3-200-200-0.5-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size1-beta1-3-200-200-0.5-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size1-beta1-3-200-200-0.5-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size1-beta1-3-200-200-1.0-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size1-beta1-3-200-200-1.0-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size1-beta1-3-200-200-1.0-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size2-beta1-1-200-200-0-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size2-beta1-1-200-200-0-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size2-beta1-1-200-200-0-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size2-beta1-1-200-200-0.5-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size2-beta1-1-200-200-0.5-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size2-beta1-1-200-200-0.5-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size2-beta1-1-200-200-1.0-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size2-beta1-1-200-200-1.0-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size2-beta1-1-200-200-1.0-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size2-beta1-3-200-200-0-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size2-beta1-3-200-200-0-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size2-beta1-3-200-200-0-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size2-beta1-3-200-200-0.5-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size2-beta1-3-200-200-0.5-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size2-beta1-3-200-200-0.5-8]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size2-beta1-3-200-200-1.0-0]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size2-beta1-3-200-200-1.0-1]+call builtins.ValueError tests/augmentation/test_random_generator.py::TestRandomCutMixGen::test_valid_param_combinations[cpu-float16-True-cut_size2-beta1-3-200-200-1.0-8]+call builtins.AssertionError tests/augmentation/test_random_generator.py::TestRandomPerspectiveGen::test_sampling_method[cpu-float16]+call builtins.AssertionError tests/augmentation/test_random_generator_3d.py::TestRandomAffineGen3D::test_random_gen[cpu-float16]+call builtins.AssertionError tests/augmentation/test_random_generator_3d.py::TestRandomAffineGen3D::test_same_on_batch[cpu-float16]+call builtins.AssertionError tests/augmentation/test_random_generator_3d.py::TestRandomPerspectiveGen3D::test_random_gen[cpu-float16]+call builtins.AssertionError tests/augmentation/test_random_generator_3d.py::TestRandomPerspectiveGen3D::test_same_on_batch[cpu-float16]+call builtins.AssertionError tests/color/test_hls.py::TestRgbToHls::test_jit[cpu-float16]+call builtins.AssertionError tests/color/test_hls.py::TestRgbToHls::test_module[cpu-float16]+call builtins.AssertionError tests/color/test_rgb.py::TestRgb255Normals::test_back_and_forth[cpu-float16]+call builtins.AssertionError tests/feature/test_affine_shape_estimator.py::TestLAFAffNetShapeEstimator::test_toy[cpu-float16]+call builtins.AssertionError tests/feature/test_aliked.py::TestALIKED::test_descriptor_normalized[cpu-float16]+call builtins.NotImplementedError tests/feature/test_hynet.py::TestHyNet::test_jit[cpu-float16]+call builtins.AssertionError tests/feature/test_responces_local_features.py::TestBlobDoGSingle::test_blobs_batch[cpu-float16]+call builtins.AssertionError tests/feature/test_responces_local_features.py::TestCornerGFTT::test_corners_batch[cpu-float16]+call builtins.NotImplementedError tests/feature/test_sosnet.py::TestSOSNet::test_jit[cpu-float16]+call builtins.AssertionError tests/filters/test_canny.py::TestCanny::test_magnitude[cpu-float16]+call builtins.RuntimeError tests/filters/test_canny.py::TestCanny::test_magnitude_hyst[cpu-float16]+call builtins.AssertionError tests/filters/test_canny.py::TestCanny::test_magnitude_hyst_false[cpu-float16]+call builtins.AssertionError tests/filters/test_canny.py::TestCanny::test_magnitude_threshold[cpu-float16]+call builtins.RuntimeError tests/filters/test_canny.py::TestCanny::test_module[cpu-float16]+call builtins.RuntimeError tests/filters/test_canny.py::TestCanny::test_noncontiguous[cpu-float16-2]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_cardinality[cpu-float16-same-2]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_cardinality[cpu-float16-same-3]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_cardinality[cpu-float16-same-6]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_cardinality[cpu-float16-same-8]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_cardinality[cpu-float16-valid-2]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_cardinality[cpu-float16-valid-3]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_cardinality[cpu-float16-valid-6]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_cardinality[cpu-float16-valid-8]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_conv[cpu-float16]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_even_sized_filter[cpu-float16-same]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_even_sized_filter[cpu-float16-valid]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_mean_filter[cpu-float16-same]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_mean_filter[cpu-float16-valid]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_mean_filter_2batch_2ch[cpu-float16-same]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_mean_filter_2batch_2ch[cpu-float16-valid]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_mix_sized_filter_padding_same[cpu-float16-same]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_mix_sized_filter_padding_same[cpu-float16-valid]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_noncontiguous[cpu-float16-same]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_noncontiguous[cpu-float16-valid]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_normalized_mean_filter[cpu-float16-same]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_normalized_mean_filter[cpu-float16-valid]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_smoke[cpu-float16-same-False-circular]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_smoke[cpu-float16-same-False-constant]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_smoke[cpu-float16-same-False-reflect]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_smoke[cpu-float16-same-False-replicate]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_smoke[cpu-float16-same-True-circular]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_smoke[cpu-float16-same-True-constant]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_smoke[cpu-float16-same-True-reflect]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_smoke[cpu-float16-same-True-replicate]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_smoke[cpu-float16-valid-False-circular]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_smoke[cpu-float16-valid-False-constant]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_smoke[cpu-float16-valid-False-reflect]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_smoke[cpu-float16-valid-False-replicate]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_smoke[cpu-float16-valid-True-circular]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_smoke[cpu-float16-valid-True-constant]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_smoke[cpu-float16-valid-True-reflect]+call builtins.RuntimeError tests/filters/test_filters.py::TestFilter2D_fftconv::test_smoke[cpu-float16-valid-True-replicate]+call builtins.AssertionError tests/filters/test_gaussian.py::TestGaussianBlur2d::test_separable_vs_non_separable_small_kernel[cpu-float16]+call builtins.AssertionError tests/filters/test_gaussian.py::test_gaussian[cpu-float16-11-11.0-3.0-expected3]+call builtins.AssertionError tests/filters/test_gaussian.py::test_get_gaussian_discrete_kernel1d_float[cpu-float16-1.5-11]+call builtins.AssertionError tests/filters/test_gaussian.py::test_get_gaussian_discrete_kernel1d_float[cpu-float16-1.5-5]+call builtins.AssertionError tests/filters/test_gaussian.py::test_get_gaussian_discrete_kernel1d_float[cpu-float16-5.0-11]+call builtins.AssertionError tests/filters/test_gaussian.py::test_get_gaussian_discrete_kernel1d_float[cpu-float16-5.0-5]+call builtins.AssertionError tests/filters/test_gaussian.py::test_get_gaussian_discrete_kernel1d_tensor[cpu-float16-sigma0-11]+call builtins.AssertionError tests/filters/test_gaussian.py::test_get_gaussian_discrete_kernel1d_tensor[cpu-float16-sigma0-5]+call builtins.AssertionError tests/filters/test_gaussian.py::test_get_gaussian_discrete_kernel1d_tensor[cpu-float16-sigma1-11]+call builtins.AssertionError tests/filters/test_gaussian.py::test_get_gaussian_discrete_kernel1d_tensor[cpu-float16-sigma1-5]+call builtins.AssertionError tests/filters/test_gaussian.py::test_get_gaussian_discrete_kernel1d_tensor[cpu-float16-sigma2-11]+call builtins.AssertionError tests/filters/test_gaussian.py::test_get_gaussian_discrete_kernel1d_tensor[cpu-float16-sigma2-5]+call builtins.AssertionError tests/filters/test_otsu_thresholding.py::TestOtsuThreshold::test_gradual_threshold[cpu-float16]+call builtins.AssertionError tests/filters/test_otsu_thresholding.py::test_mask[cpu-float16]+call kornia.core.exceptions.BaseError tests/geometry/calibration/test_pnp.py::TestSolvePnpDlt::test_pred_world_to_cam[cpu-float16-20]+call kornia.core.exceptions.BaseError tests/geometry/calibration/test_pnp.py::TestSolvePnpDlt::test_pred_world_to_cam[cpu-float16-6]+call kornia.core.exceptions.BaseError tests/geometry/calibration/test_pnp.py::TestSolvePnpDlt::test_pred_world_to_cam_weighted[cpu-float16-16]+call kornia.core.exceptions.BaseError tests/geometry/calibration/test_pnp.py::TestSolvePnpDlt::test_pred_world_to_cam_weighted[cpu-float16-20]+call kornia.core.exceptions.BaseError tests/geometry/calibration/test_pnp.py::TestSolvePnpDlt::test_pred_world_to_cam_weighted_rand[cpu-float16-25]+call kornia.core.exceptions.BaseError tests/geometry/calibration/test_pnp.py::TestSolvePnpDlt::test_project[cpu-float16-20]+call kornia.core.exceptions.BaseError tests/geometry/calibration/test_pnp.py::TestSolvePnpDlt::test_project[cpu-float16-6]+call kornia.core.exceptions.BaseError tests/geometry/calibration/test_pnp.py::TestSolvePnpDlt::test_smoke[cpu-float16-20]+call kornia.core.exceptions.BaseError tests/geometry/calibration/test_pnp.py::TestSolvePnpDlt::test_smoke[cpu-float16-6]+call builtins.AssertionError tests/geometry/calibration/test_undistort.py::TestUndistortImage::test_shape_extra_dims[cpu-float16]+call builtins.AssertionError tests/geometry/calibration/test_undistort.py::TestUndistortPoints::test_opencv_all_coeff[cpu-float16]+call builtins.AssertionError tests/geometry/calibration/test_undistort.py::TestUndistortPoints::test_opencv_five_coeff[cpu-float16]+call builtins.AssertionError tests/geometry/calibration/test_undistort.py::TestUndistortPoints::test_opencv_stereo[cpu-float16]+call builtins.AssertionError tests/geometry/camera/test_distortion.py::TestDistortionAffine::test_distort_points_roundtrip[cpu-float16]+call builtins.AssertionError tests/geometry/camera/test_distortion.py::TestDistortionKannalaBrandt::test_distort_points_roundtrip[cpu-float16]+call builtins.AssertionError tests/geometry/camera/test_perspective.py::TestProjectPoints::test_project_and_unproject[cpu-float16]+call builtins.AssertionError tests/geometry/camera/test_pinhole.py::TestCam2Pixel::test_consistency[cpu-float16-1]+call builtins.AssertionError tests/geometry/camera/test_pinhole.py::TestCam2Pixel::test_consistency[cpu-float16-2]+call builtins.AssertionError tests/geometry/camera/test_pinhole.py::TestCam2Pixel::test_consistency[cpu-float16-5]+call builtins.AssertionError tests/geometry/camera/test_pinhole.py::TestPinholeCamera::test_pinhole_camera_project_and_unproject[cpu-float16]+call builtins.AssertionError tests/geometry/camera/test_pinhole.py::TestPixel2Cam::test_consistency[cpu-float16-1]+call builtins.AssertionError tests/geometry/camera/test_pinhole.py::TestPixel2Cam::test_consistency[cpu-float16-2]+call builtins.AssertionError tests/geometry/camera/test_pinhole.py::TestPixel2Cam::test_consistency[cpu-float16-5]+call builtins.AssertionError tests/geometry/camera/test_stereo.py::TestStereoCamera::test_reproject_disparity_to_3D_real[1-cpu-float16]+call builtins.AssertionError tests/geometry/camera/test_stereo.py::TestStereoCamera::test_reproject_disparity_to_3D_real[2-cpu-float16]+call builtins.AssertionError tests/geometry/camera/test_stereo.py::TestStereoCamera::test_reproject_disparity_to_3D_real[4-cpu-float16]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestDecomposeEssentialMatrix::test_shape[cpu-float16-batch_shape0]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestDecomposeEssentialMatrix::test_shape[cpu-float16-batch_shape1]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestDecomposeEssentialMatrix::test_shape[cpu-float16-batch_shape2]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestDecomposeEssentialMatrix::test_shape[cpu-float16-batch_shape3]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestDecomposeEssentialMatrix::test_smoke[cpu-float16]+call builtins.AssertionError tests/geometry/epipolar/test_essential.py::TestEssentialFromFundamental::test_from_fundamental[cpu-float16]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestFindEssential::test_degenerate_case[cpu-float16-10-5]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestFindEssential::test_degenerate_case[cpu-float16-5-5]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestFindEssential::test_epipolar_constraint[cpu-float16]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestFindEssential::test_shape[cpu-float16-1-5]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestFindEssential::test_shape[cpu-float16-16-5]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestFindEssential::test_shape[cpu-float16-2-6]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestFindEssential::test_shape[cpu-float16-3-7]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestFindEssential::test_shape_noweights[cpu-float16-1-5]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestFindEssential::test_shape_noweights[cpu-float16-2-6]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestFindEssential::test_shape_noweights[cpu-float16-3-7]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestFindEssential::test_smoke[cpu-float16]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestFindEssential::test_synthetic_sampson[cpu-float16]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssential::test_shape[cpu-float16-batch_shape0]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssential::test_shape[cpu-float16-batch_shape1]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssential::test_shape[cpu-float16-batch_shape2]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssential::test_shape[cpu-float16-batch_shape3]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssential::test_smoke[cpu-float16]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssential::test_two_view[cpu-float16]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssentialChooseSolution::test_masking[cpu-float16]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssentialChooseSolution::test_shape[cpu-float16-1-3]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssentialChooseSolution::test_shape[cpu-float16-2-3]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssentialChooseSolution::test_shape[cpu-float16-2-8]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssentialChooseSolution::test_shape[cpu-float16-3-2]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssentialChooseSolution::test_smoke[cpu-float16]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssentialChooseSolution::test_two_view[cpu-float16]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssentialChooseSolution::test_unbatched[cpu-float16-10]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssentialChooseSolution::test_unbatched[cpu-float16-15]+call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssentialChooseSolution::test_unbatched[cpu-float16-20]+call builtins.AssertionError tests/geometry/epipolar/test_fundamental.py::TestComputeCorrespondEpilines::test_opencv[cpu-float16]+call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_7point_opencv[cpu-float16]+call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_opencv_svd[cpu-float16]+call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_shape[cpu-float16-1-8]+call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_shape[cpu-float16-2-9]+call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_shape[cpu-float16-3-10]+call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_shape_7point[cpu-float16-1]+call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_shape_7point[cpu-float16-2]+call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_shape_7point[cpu-float16-3]+call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_shape_noweights[cpu-float16-1-8]+call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_shape_noweights[cpu-float16-2-8]+call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_shape_noweights[cpu-float16-3-10]+call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_smoke[cpu-float16]+call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_synthetic_sampson[cpu-float16]+call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_synthetic_sampson_7point[cpu-float16]+call builtins.AssertionError tests/geometry/epipolar/test_fundamental.py::TestFundamentalFromProjections::test_batch_support_check[cpu-float16]+call builtins.AssertionError tests/geometry/epipolar/test_fundamental.py::TestFundamentlFromEssential::test_from_to_essential[cpu-float16]+call builtins.AssertionError tests/geometry/epipolar/test_projection.py::TestKRtFromProjection::test_projection_from_krt[cpu-float16]+call builtins.NotImplementedError tests/geometry/epipolar/test_projection.py::TestKRtFromProjection::test_shape[cpu-float16-1]+call builtins.NotImplementedError tests/geometry/epipolar/test_projection.py::TestKRtFromProjection::test_shape[cpu-float16-2]+call builtins.NotImplementedError tests/geometry/epipolar/test_projection.py::TestKRtFromProjection::test_shape[cpu-float16-4]+call builtins.NotImplementedError tests/geometry/epipolar/test_projection.py::TestKRtFromProjection::test_simple[cpu-float16]+call builtins.NotImplementedError tests/geometry/epipolar/test_projection.py::TestKRtFromProjection::test_smoke[cpu-float16]+call builtins.NotImplementedError tests/geometry/epipolar/test_projection.py::TestProjectionFromKRt::test_krt_from_projection[cpu-float16]+call builtins.NotImplementedError tests/geometry/liegroup/test_se2.py::TestSe2::test_cardinality[cpu-float16-input_shape0]+call builtins.NotImplementedError tests/geometry/liegroup/test_se2.py::TestSe2::test_cardinality[cpu-float16-input_shape1]+call builtins.NotImplementedError tests/geometry/liegroup/test_se2.py::TestSe2::test_cardinality[cpu-float16-input_shape2]+call builtins.NotImplementedError tests/geometry/liegroup/test_se2.py::TestSe2::test_cardinality[cpu-float16-input_shape3]+call builtins.NotImplementedError tests/geometry/liegroup/test_se2.py::TestSe2::test_inverse[cpu-float16-1]+call builtins.NotImplementedError tests/geometry/liegroup/test_se2.py::TestSe2::test_inverse[cpu-float16-2]+call builtins.NotImplementedError tests/geometry/liegroup/test_se2.py::TestSe2::test_inverse[cpu-float16-5]+call builtins.NotImplementedError tests/geometry/liegroup/test_se2.py::TestSe2::test_inverse[cpu-float16-None]+call builtins.NotImplementedError tests/geometry/liegroup/test_se2.py::TestSe2::test_mul[cpu-float16-1]+call builtins.NotImplementedError tests/geometry/liegroup/test_se2.py::TestSe2::test_mul[cpu-float16-2]+call builtins.NotImplementedError tests/geometry/liegroup/test_se2.py::TestSe2::test_mul[cpu-float16-5]+call builtins.NotImplementedError tests/geometry/liegroup/test_se2.py::TestSe2::test_mul[cpu-float16-None]+call builtins.NotImplementedError tests/geometry/liegroup/test_se2.py::TestSe2::test_mul_vector[cpu-float16-1]+call builtins.NotImplementedError tests/geometry/liegroup/test_se2.py::TestSe2::test_mul_vector[cpu-float16-2]+call builtins.NotImplementedError tests/geometry/liegroup/test_se2.py::TestSe2::test_mul_vector[cpu-float16-5]+call builtins.NotImplementedError tests/geometry/liegroup/test_se2.py::TestSe2::test_mul_vector[cpu-float16-None]+call builtins.NotImplementedError tests/geometry/liegroup/test_se2.py::TestSe2::test_random[cpu-float16-1]+call builtins.NotImplementedError tests/geometry/liegroup/test_se2.py::TestSe2::test_random[cpu-float16-2]+call builtins.NotImplementedError tests/geometry/liegroup/test_se2.py::TestSe2::test_random[cpu-float16-5]+call builtins.NotImplementedError tests/geometry/liegroup/test_se2.py::TestSe2::test_random[cpu-float16-None]+call builtins.AssertionError tests/geometry/liegroup/test_se3.py::TestSe3::test_exp_log[cpu-float16-None]+call builtins.AssertionError tests/geometry/liegroup/test_se3.py::TestSe3::test_mul[cpu-float16-1]+call builtins.AssertionError tests/geometry/liegroup/test_se3.py::TestSe3::test_mul[cpu-float16-5]+call builtins.AssertionError tests/geometry/liegroup/test_se3.py::TestSe3::test_mul[cpu-float16-None]+call builtins.AssertionError tests/geometry/liegroup/test_se3.py::TestSe3::test_mul_point[cpu-float16-5]+call builtins.AssertionError tests/geometry/liegroup/test_se3.py::TestSe3::test_mul_vector[cpu-float16-2]+call builtins.AssertionError tests/geometry/liegroup/test_se3.py::TestSe3::test_mul_vector[cpu-float16-5]+call builtins.NotImplementedError tests/geometry/liegroup/test_so2.py::TestSo2::test_mul[cpu-float16-1]+call builtins.NotImplementedError tests/geometry/liegroup/test_so2.py::TestSo2::test_mul[cpu-float16-2]+call builtins.NotImplementedError tests/geometry/liegroup/test_so2.py::TestSo2::test_mul[cpu-float16-5]+call builtins.NotImplementedError tests/geometry/liegroup/test_so2.py::TestSo2::test_mul[cpu-float16-None]+call builtins.NotImplementedError tests/geometry/liegroup/test_so2.py::TestSo2::test_random[cpu-float16-1]+call builtins.NotImplementedError tests/geometry/liegroup/test_so2.py::TestSo2::test_random[cpu-float16-2]+call builtins.NotImplementedError tests/geometry/liegroup/test_so2.py::TestSo2::test_random[cpu-float16-5]+call builtins.NotImplementedError tests/geometry/liegroup/test_so2.py::TestSo2::test_random[cpu-float16-None]+call builtins.AssertionError tests/geometry/liegroup/test_so3.py::TestSo3::test_ortho[cpu-float16-2]+call builtins.AssertionError tests/geometry/solvers/test_polynomial_solver.py::TestQuarticSolver::test_random[cpu-float16]+call builtins.AssertionError tests/geometry/solvers/test_polynomial_solver.py::TestQuarticSolver::test_solve_quartic[cpu-float16-coeffs0-expected_solutions0]+call builtins.AssertionError tests/geometry/solvers/test_polynomial_solver.py::TestQuarticSolver::test_solve_quartic[cpu-float16-coeffs3-expected_solutions3]+call builtins.AssertionError tests/geometry/solvers/test_polynomial_solver.py::TestQuarticSolver::test_solve_quartic[cpu-float16-coeffs4-expected_solutions4]+call builtins.AssertionError tests/geometry/solvers/test_polynomial_solver.py::TestQuarticSolver::test_solve_quartic[cpu-float16-coeffs6-expected_solutions6]+call builtins.AssertionError tests/geometry/subpix/test_spatial_softargmax.py::TestConvQuadInterp3dModule::test_diag[cpu-float16]+call builtins.AssertionError tests/geometry/subpix/test_spatial_softargmax.py::TestConvSoftArgmax2d::test_cold_diag[cpu-float16]+call builtins.AssertionError tests/geometry/subpix/test_spatial_softargmax.py::TestConvSoftArgmax2d::test_cold_diag_norm[cpu-float16]+call builtins.NotImplementedError tests/geometry/subpix/test_spatial_softargmax.py::TestConvSoftArgmax3d::test_cold_diag[cpu-float16]+call builtins.NotImplementedError tests/geometry/subpix/test_spatial_softargmax.py::TestConvSoftArgmax3d::test_cold_diag_norm[cpu-float16]+call builtins.NotImplementedError tests/geometry/subpix/test_spatial_softargmax.py::TestConvSoftArgmax3d::test_hot_diag[cpu-float16]+call builtins.NotImplementedError tests/geometry/subpix/test_spatial_softargmax.py::TestConvSoftArgmax3d::test_hot_diag_norm[cpu-float16]+call builtins.NotImplementedError tests/geometry/subpix/test_spatial_softargmax.py::TestConvSoftArgmax3d::test_smoke[cpu-float16]+call builtins.NotImplementedError tests/geometry/subpix/test_spatial_softargmax.py::TestConvSoftArgmax3d::test_smoke_with_val[cpu-float16]+call builtins.AssertionError tests/geometry/subpix/test_spatial_softargmax.py::TestSpatialSoftArgmax2d::test_batch2_n2[cpu-float16]+call builtins.AssertionError tests/geometry/subpix/test_spatial_softargmax.py::TestSpatialSoftArgmax2d::test_bottom_right[cpu-float16]+call builtins.AssertionError tests/geometry/subpix/test_spatial_softargmax.py::TestSpatialSoftArgmax2d::test_bottom_right_normalized[cpu-float16]+call builtins.AssertionError tests/geometry/subpix/test_spatial_softargmax.py::TestSpatialSoftArgmax2d::test_top_left[cpu-float16]+call builtins.AssertionError tests/geometry/subpix/test_spatial_softargmax.py::TestSpatialSoftArgmax2d::test_top_left_normalized[cpu-float16]+call builtins.AssertionError tests/geometry/test_bbox.py::TestTransformBoxes2D::test_transform_boxes[cpu-float16]+call builtins.AssertionError tests/geometry/test_bbox.py::TestTransformBoxes2D::test_transform_boxes_wh[cpu-float16]+call builtins.AssertionError tests/geometry/test_bbox.py::TestTransformBoxes2D::test_transform_multiple_boxes[cpu-float16]+call builtins.AssertionError tests/geometry/test_conversions.py::TestAngleAxisToQuaternion::test_x_rotation[cpu-float16]+call builtins.AssertionError tests/geometry/test_conversions.py::TestAngleAxisToQuaternion::test_y_rotation[cpu-float16]+call builtins.AssertionError tests/geometry/test_conversions.py::TestAngleAxisToQuaternion::test_z_rotation[cpu-float16]+call builtins.AssertionError tests/geometry/test_conversions.py::TestAngleAxisToRotationMatrix::test_axis_angle_to_rotation_matrix[cpu-float16]+call builtins.AssertionError tests/geometry/test_conversions.py::TestCARKitToColmap::test_everything[cpu-float16]+call builtins.AssertionError tests/geometry/test_conversions.py::TestCamtoworldGraphicsToVision::test_everything[cpu-float16-1]+call builtins.AssertionError tests/geometry/test_conversions.py::TestCamtoworldGraphicsToVision::test_everything[cpu-float16-2]+call builtins.AssertionError tests/geometry/test_conversions.py::TestCamtoworldGraphicsToVision::test_everything[cpu-float16-3]+call builtins.AssertionError tests/geometry/test_conversions.py::TestCamtoworldRtToPoseRt::test_everything[cpu-float16-1]+call builtins.AssertionError tests/geometry/test_conversions.py::TestCamtoworldRtToPoseRt::test_everything[cpu-float16-2]+call builtins.AssertionError tests/geometry/test_conversions.py::TestCamtoworldRtToPoseRt::test_everything[cpu-float16-3]+call builtins.AssertionError tests/geometry/test_conversions.py::TestNormalizePixelCoordinates::test_list[cpu-float16]+call builtins.AssertionError tests/geometry/test_conversions.py::TestNormalizePixelCoordinates::test_tensor_bhw2[cpu-float16]+call builtins.AssertionError tests/geometry/test_conversions.py::TestProjectPoints::test_project_and_unproject[cpu-float16]+call builtins.AssertionError tests/geometry/test_conversions.py::TestQuaternionExpToLog::test_back_and_forth[cpu-float16]+call builtins.AssertionError tests/geometry/test_conversions.py::TestQuaternionFromEuler::test_values[cpu-float16]+call builtins.AssertionError tests/geometry/test_conversions.py::TestQuaternionLogToExp::test_back_and_forth[cpu-float16]+call builtins.AssertionError tests/geometry/test_conversions.py::TestRadDegConversions::test_deg2rad[cpu-float16-batch_shape0]+call builtins.AssertionError tests/geometry/test_conversions.py::TestRadDegConversions::test_deg2rad[cpu-float16-batch_shape1]+call builtins.AssertionError tests/geometry/test_conversions.py::TestRadDegConversions::test_deg2rad[cpu-float16-batch_shape2]+call builtins.AssertionError tests/geometry/test_conversions.py::TestRadDegConversions::test_deg2rad[cpu-float16-batch_shape3]+call builtins.AssertionError tests/geometry/test_conversions.py::TestRotationMatrixToAngleAxis::test_rand_quaternion_gradcheck[cpu-float16-5]+call builtins.AssertionError tests/geometry/test_conversions.py::TestRotationMatrixToAngleAxis::test_rotation_matrix_to_axis_angle[cpu-float16]+call builtins.AssertionError tests/geometry/test_conversions.py::TestRotationMatrixToQuaternion::test_corner_case[cpu-float16]+call builtins.AssertionError tests/geometry/test_depth.py::TestDepthToNormals::test_simple_normalized[cpu-float16]+call builtins.AssertionError tests/geometry/test_depth.py::TestWarpFrameDepth::test_translation_normalized[cpu-float16]+call builtins.AssertionError tests/geometry/test_depth_warper.py::TestDepthWarper::test_compute_subpixel_step[cpu-float16-1]+call builtins.AssertionError tests/geometry/test_depth_warper.py::TestDepthWarper::test_compute_subpixel_step[cpu-float16-2]+call builtins.AssertionError tests/geometry/test_homography.py::TestFindHomographyDLT::test_clean_points_lu[cpu-float16-1]+call builtins.AssertionError tests/geometry/test_homography.py::TestFindHomographyDLT::test_clean_points_lu[cpu-float16-5]+call builtins.AssertionError tests/geometry/test_homography.py::TestFindHomographyDLT::test_clean_points_svd[cpu-float16-5]+call builtins.AssertionError tests/geometry/test_homography.py::TestFindHomographyDLT::test_scaled_fixed_points[cpu-float16]+call builtins.AssertionError tests/geometry/test_homography.py::TestFindHomographyDLTIter::test_clean_points[cpu-float16-1]+call builtins.AssertionError tests/geometry/test_homography.py::TestFindHomographyDLTIter::test_clean_points[cpu-float16-2]+call builtins.AssertionError tests/geometry/test_homography.py::TestFindHomographyDLTIter::test_dirty_points_and_gradcheck[cpu-float16-1]+call builtins.AssertionError tests/geometry/test_homography.py::TestFindHomographyDLTIter::test_dirty_points_and_gradcheck[cpu-float16-2]+call builtins.AssertionError tests/geometry/test_homography.py::TestFindHomographyFromLinesDLT::test_clean_points[cpu-float16-1]+call builtins.AssertionError tests/geometry/test_homography.py::TestFindHomographyFromLinesDLT::test_clean_points[cpu-float16-2]+call builtins.AssertionError tests/geometry/test_homography.py::TestFindHomographyFromLinesDLT::test_clean_points_iter[cpu-float16-2]+call builtins.AssertionError tests/geometry/test_homography.py::TestFindHomographyFromLinesDLT::test_clean_points_iter[cpu-float16-5]+call builtins.AssertionError tests/geometry/test_line.py::TestFitLine::test_fit_line2[cpu-float16]+call builtins.AssertionError tests/geometry/test_quaternion.py::TestQuaternion::test_axis_angle[cpu-float16-1]+call builtins.AssertionError tests/geometry/test_quaternion.py::TestQuaternion::test_axis_angle[cpu-float16-5]+call builtins.AssertionError tests/geometry/test_quaternion.py::TestQuaternion::test_axis_angle[cpu-float16-None]+call builtins.AssertionError tests/geometry/test_quaternion.py::TestQuaternion::test_from_to_euler_values[cpu-float16]+call builtins.AssertionError tests/geometry/test_quaternion.py::TestQuaternion::test_inverse[cpu-float16-2]+call builtins.AssertionError tests/geometry/test_quaternion.py::TestQuaternion::test_to_axis_angle[cpu-float16-1]+call builtins.AssertionError tests/geometry/test_quaternion.py::TestQuaternion::test_to_axis_angle[cpu-float16-2]+call builtins.AssertionError tests/geometry/test_quaternion.py::TestQuaternion::test_to_axis_angle[cpu-float16-5]+call builtins.AssertionError tests/geometry/test_quaternion.py::TestQuaternion::test_to_axis_angle[cpu-float16-None]+call builtins.NotImplementedError tests/geometry/test_ransac.py::TestRANSACEssential::test_forward_enforces_essential_constraint[cpu-float16]+call builtins.NotImplementedError tests/geometry/test_ransac.py::TestRANSACEssential::test_polish_enforces_essential_constraint[cpu-float16]+call builtins.NotImplementedError tests/geometry/test_ransac.py::TestRANSACEssential::test_smoke[cpu-float16]+call builtins.NotImplementedError tests/geometry/test_ransac.py::TestRANSACFundamental::test_smoke[cpu-float16]+call builtins.AssertionError tests/geometry/transform/test_affine.py::TestAffine2d::test_affine_rotate_translate[cpu-float16]+call builtins.AssertionError tests/geometry/transform/test_affine.py::TestRotate::test_angle90[cpu-float16]+call builtins.AssertionError tests/geometry/transform/test_affine.py::TestRotate::test_angle90_batch2[cpu-float16]+call builtins.AssertionError tests/geometry/transform/test_affine.py::TestRotate::test_angle90_batch2_broadcast[cpu-float16]+call builtins.AssertionError tests/geometry/transform/test_affine.py::TestShear::test_shear_batch2[cpu-float16]+call builtins.AssertionError tests/geometry/transform/test_affine.py::TestShear::test_shear_batch2_broadcast[cpu-float16]+call builtins.AssertionError tests/geometry/transform/test_affine.py::TestShear::test_shear_x[cpu-float16]+call builtins.AssertionError tests/geometry/transform/test_affine.py::TestShear::test_shear_y[cpu-float16]+call builtins.AssertionError tests/geometry/transform/test_affine.py::TestTranslate::test_dxdy_batch[cpu-float16]+call builtins.AssertionError tests/geometry/transform/test_crop2d.py::TestCropAndResize::test_crop_non_parallel_box[cpu-float16]+call builtins.AssertionError tests/geometry/transform/test_crop3d.py::TestCenterCrop3D::test_center_crop_357[cpu-float16-crop_size2]+call builtins.AssertionError tests/geometry/transform/test_crop3d.py::TestCenterCrop3D::test_center_crop_357_batch[cpu-float16-crop_size2]+call builtins.AssertionError tests/geometry/transform/test_homography_warper.py::TestHomographyWarper3D::test_normalize_homography_identity[cpu-float16-1]+call builtins.AssertionError tests/geometry/transform/test_homography_warper.py::TestHomographyWarper3D::test_normalize_homography_identity[cpu-float16-3]+call builtins.AssertionError tests/geometry/transform/test_homography_warper.py::TestHomographyWarper::test_homography_warper[cpu-float16-1]+call builtins.AssertionError tests/geometry/transform/test_homography_warper.py::TestHomographyWarper::test_homography_warper[cpu-float16-2]+call builtins.AssertionError tests/geometry/transform/test_homography_warper.py::TestHomographyWarper::test_homography_warper[cpu-float16-3]+call builtins.AssertionError tests/geometry/transform/test_homography_warper.py::TestHomographyWarper::test_normalize_homography_identity[cpu-float16-1]+call builtins.AssertionError tests/geometry/transform/test_homography_warper.py::TestHomographyWarper::test_normalize_homography_identity[cpu-float16-3]+call builtins.AssertionError tests/geometry/transform/test_homography_warper.py::TestHomographyWarper::test_translation[cpu-float16-shape1]+call builtins.AssertionError tests/geometry/transform/test_homography_warper.py::TestHomographyWarper::test_translation[cpu-float16-shape3]+call builtins.AssertionError tests/geometry/transform/test_imgwarp.py::TestInvertAffineTransform::test_rot90[cpu-float16]+call builtins.AssertionError tests/geometry/transform/test_imgwarp.py::TestInvertAffineTransform::test_rot90_batch[cpu-float16]+call builtins.AssertionError tests/geometry/transform/test_imgwarp.py::TestRotationMatrix2d::test_90deg_rotation[cpu-float16-1]+call builtins.AssertionError tests/geometry/transform/test_imgwarp.py::TestRotationMatrix2d::test_90deg_rotation[cpu-float16-2]+call builtins.AssertionError tests/geometry/transform/test_imgwarp.py::TestRotationMatrix2d::test_90deg_rotation[cpu-float16-5]+call builtins.AssertionError tests/geometry/transform/test_imgwarp.py::TestRotationMatrix2d::test_rotation_45deg[cpu-float16-1]+call builtins.AssertionError tests/geometry/transform/test_imgwarp.py::TestRotationMatrix2d::test_rotation_45deg[cpu-float16-2]+call builtins.AssertionError tests/geometry/transform/test_imgwarp.py::TestRotationMatrix2d::test_rotation_45deg[cpu-float16-5]+call builtins.AssertionError tests/geometry/transform/test_imgwarp.py::TestRotationMatrix2d::test_rotation_90deg_and_scale[cpu-float16-1]+call builtins.AssertionError tests/geometry/transform/test_imgwarp.py::TestRotationMatrix2d::test_rotation_90deg_and_scale[cpu-float16-2]+call builtins.AssertionError tests/geometry/transform/test_imgwarp.py::TestRotationMatrix2d::test_rotation_90deg_and_scale[cpu-float16-5]+call builtins.AssertionError tests/geometry/transform/test_imgwarp.py::TestWarpAffine::test_fill_padding_translation[cpu-float16]+call builtins.AssertionError tests/geometry/transform/test_imgwarp.py::TestWarpAffine::test_rotation_inverse[cpu-float16]+call builtins.AssertionError tests/geometry/transform/test_imgwarp.py::TestWarpAffine::test_translation[cpu-float16]+call builtins.AssertionError tests/geometry/transform/test_imgwarp.py::TestWarpPerspective::test_convention_normalize_invert_equivalence[cpu-float16]+call builtins.AssertionError tests/geometry/transform/test_imgwarp.py::TestWarpPerspective::test_fill_padding_translation[cpu-float16]+call builtins.AssertionError tests/geometry/transform/test_imgwarp.py::TestWarpPerspective::test_rotation_inverse[cpu-float16]+call builtins.AssertionError tests/geometry/transform/test_imgwarp.py::TestWarpPerspective::test_translation[cpu-float16]+call builtins.AssertionError tests/geometry/transform/test_imgwarp.py::TestWarpPerspective::test_translation_normalized[cpu-float16]+call builtins.AssertionError tests/geometry/transform/test_imgwarp3d.py::TestGetRotationMatrix3d::test_rot90x[cpu-float16]+call builtins.AssertionError tests/geometry/transform/test_imgwarp3d.py::TestGetRotationMatrix3d::test_rot90y[cpu-float16]+call builtins.AssertionError tests/geometry/transform/test_imgwarp3d.py::TestGetRotationMatrix3d::test_rot90z[cpu-float16]+call builtins.AssertionError tests/geometry/transform/test_imgwarp3d.py::TestWarpAffine3d::test_rotate_x[cpu-float16]+call builtins.AssertionError tests/geometry/transform/test_imgwarp3d.py::TestWarpAffine3d::test_rotate_y[cpu-float16]+call builtins.AssertionError tests/geometry/transform/test_imgwarp3d.py::TestWarpAffine3d::test_rotate_y_large[cpu-float16]+call builtins.AssertionError tests/geometry/transform/test_imgwarp3d.py::TestWarpAffine3d::test_rotate_z[cpu-float16]+call builtins.AssertionError tests/geometry/transform/test_thin_plate_spline.py::TestWarpImage::test_identity_warp_align_corners[cpu-float16-1]+call builtins.AssertionError tests/image/test_draw.py::TestFillConvexPolygon::test_batch_color_no_batch[cpu-float16]+call builtins.AssertionError tests/image/test_draw.py::TestFillConvexPolygon::test_batch_variable_size[cpu-float16]+call builtins.AssertionError tests/image/test_draw.py::TestFillConvexPolygon::test_circle[cpu-float16]+call builtins.AssertionError tests/image/test_draw.py::TestFillConvexPolygon::test_ellipse[cpu-float16]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_axis_angle[cpu-float16--45.0-x]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_axis_angle[cpu-float16--45.0-y]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_axis_angle[cpu-float16--45.0-z]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_axis_angle[cpu-float16-45-x]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_axis_angle[cpu-float16-45-y]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_axis_angle[cpu-float16-45-z]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_log_quaternion[cpu-float16--179.9-x]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_log_quaternion[cpu-float16--179.9-y]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_log_quaternion[cpu-float16--179.9-z]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_log_quaternion[cpu-float16--45.0-x]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_log_quaternion[cpu-float16--45.0-y]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_log_quaternion[cpu-float16--45.0-z]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_log_quaternion[cpu-float16--90.0-x]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_log_quaternion[cpu-float16--90.0-y]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_log_quaternion[cpu-float16--90.0-z]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_log_quaternion[cpu-float16-45-x]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_log_quaternion[cpu-float16-45-y]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_log_quaternion[cpu-float16-45-z]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_log_quaternion[cpu-float16-90-x]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_log_quaternion[cpu-float16-90-y]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_log_quaternion[cpu-float16-90-z]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_quaternion[cpu-float16--179.9-x]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_quaternion[cpu-float16--179.9-y]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_quaternion[cpu-float16--179.9-z]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_quaternion[cpu-float16--45.0-x]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_quaternion[cpu-float16--45.0-y]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_quaternion[cpu-float16--45.0-z]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_quaternion[cpu-float16-45-x]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_quaternion[cpu-float16-45-y]+call builtins.AssertionError tests/integration/test_conversions.py::TestAngleOfRotations::test_quaternion[cpu-float16-45-z]+call builtins.AssertionError tests/integration/test_conversions.py::TestQuaternionToAngleAxisToQuaternion::test_rotation[cpu-float16-0]+call builtins.AssertionError tests/integration/test_conversions.py::TestQuaternionToAngleAxisToQuaternion::test_rotation[cpu-float16-1]+call builtins.AssertionError tests/integration/test_conversions.py::TestQuaternionToAngleAxisToQuaternion::test_rotation[cpu-float16-2]+call builtins.AssertionError tests/integration/test_conversions.py::TestQuaternionToRotationMatrixToAngleAxis::test_triplet_qam[cpu-float16-0]+call builtins.AssertionError tests/integration/test_conversions.py::TestQuaternionToRotationMatrixToAngleAxis::test_triplet_qam[cpu-float16-1]+call builtins.AssertionError tests/integration/test_conversions.py::TestQuaternionToRotationMatrixToAngleAxis::test_triplet_qam[cpu-float16-2]+call builtins.AssertionError tests/integration/test_conversions.py::TestQuaternionToRotationMatrixToAngleAxis::test_triplet_qma[cpu-float16-0]+call builtins.AssertionError tests/integration/test_conversions.py::TestQuaternionToRotationMatrixToAngleAxis::test_triplet_qma[cpu-float16-1]+call builtins.AssertionError tests/integration/test_conversions.py::TestQuaternionToRotationMatrixToAngleAxis::test_triplet_qma[cpu-float16-2]+call builtins.AssertionError tests/losses/test_dice.py::TestDiceLoss::test_averaging_macro[cpu-float16]+call builtins.AssertionError tests/losses/test_dice.py::TestDiceLoss::test_averaging_micro[cpu-float16]+call builtins.AssertionError tests/losses/test_mutual_information.py::TestMutualInformationLoss::test_value_ranges[cpu-float16]+call builtins.RuntimeError tests/models/test_efficient_vit.py::TestEfficientViT::test_smoke[cpu-float16-128-4-b0]+call builtins.RuntimeError tests/models/test_efficient_vit.py::TestEfficientViT::test_smoke[cpu-float16-128-4-b1]+call builtins.RuntimeError tests/models/test_efficient_vit.py::TestEfficientViT::test_smoke[cpu-float16-128-4-b2]+call builtins.RuntimeError tests/models/test_efficient_vit.py::TestEfficientViT::test_smoke[cpu-float16-64-2-b0]+call builtins.RuntimeError tests/models/test_efficient_vit.py::TestEfficientViT::test_smoke[cpu-float16-64-2-b1]+call builtins.RuntimeError tests/models/test_efficient_vit.py::TestEfficientViT::test_smoke[cpu-float16-64-2-b2]+call builtins.RuntimeError tests/models/test_efficient_vit.py::TestEfficientViT::test_smoke[cpu-float16-96-3-b0]+call builtins.RuntimeError tests/models/test_efficient_vit.py::TestEfficientViT::test_smoke[cpu-float16-96-3-b1]+call builtins.RuntimeError tests/models/test_efficient_vit.py::TestEfficientViT::test_smoke[cpu-float16-96-3-b2]+call builtins.RuntimeError tests/models/test_kimi_vl.py::TestKimiVLComponents::test_moonvit[cpu-float16]+call builtins.RuntimeError tests/models/test_kimi_vl.py::TestKimiVLModel::test_attention_mask[cpu-float16]+call builtins.RuntimeError tests/models/test_kimi_vl.py::TestKimiVLModel::test_cardinality[cpu-float16-1]+call builtins.RuntimeError tests/models/test_kimi_vl.py::TestKimiVLModel::test_cardinality[cpu-float16-2]+call builtins.RuntimeError tests/models/test_kimi_vl.py::TestKimiVLModel::test_cardinality[cpu-float16-4]+call builtins.RuntimeError tests/models/test_kimi_vl.py::TestKimiVLModel::test_variable_resolution[cpu-float16]diff --git a/tests/enhance/test_core.py b/tests/enhance/test_core.pyindex 117da3d57..8a4c24a08 100644--- a/tests/enhance/test_core.py+++ b/tests/enhance/test_core.py@@ -33,7 +33,7 @@ class TestAddWeighted(BaseTester):fcn = kornia.enhance.add_weighteddef get_input(self, device, dtype, size, max_elem=10):- shape = random_shape(size, max_elem)+ shape = random_shape(size, max_elem=max_elem)src1 = torch.randn(shape, device=device, dtype=dtype)src2 = torch.randn(shape, device=device, dtype=dtype)alpha = random.random()@@ -43,8 +43,46 @@ class TestAddWeighted(BaseTester):@pytest.mark.parametrize("size", [2, 3, 4, 5])def test_smoke(self, device, dtype, size):- src1, src2, alpha, beta, gamma = self.get_input(device, dtype, size=3)- self.assert_close(TestAddWeighted.fcn(src1, alpha, src2, beta, gamma), src1 * alpha + src2 * beta + gamma)+ src1, src2, alpha, beta, gamma = self.get_input(device, dtype, size=size)+ expected = src1 * alpha + src2 * beta + gamma+ self.assert_close(TestAddWeighted.fcn(src1, alpha, src2, beta, gamma), expected)++ @pytest.mark.device_agnostic+ @pytest.mark.parametrize("dtype", [torch.float16, torch.bfloat16])+ def test_python_scalars_keep_opmath_precision(self, dtype):+ src1 = torch.linspace(-2.0, 2.0, 1000, dtype=dtype)+ src2 = torch.linspace(2.0, -2.0, 1000, dtype=dtype)++ actual = TestAddWeighted.fcn(src1, 0.1, src2, 0.3, 0.2)+ expected = src1 * 0.1 + src2 * 0.3 + 0.2+ downcast = (+ src1 * torch.tensor(0.1, dtype=dtype)+ + src2 * torch.tensor(0.3, dtype=dtype)+ + torch.tensor(0.2, dtype=dtype)+ )++ assert torch.equal(actual, expected)+ assert not torch.equal(expected, downcast)++ @pytest.mark.device_agnostic+ def test_python_scalars_promote_integer_inputs(self):+ src1 = torch.full((2, 2), 2, dtype=torch.uint8)+ src2 = torch.full((2, 2), 4, dtype=torch.uint8)++ actual = TestAddWeighted.fcn(src1, 0.5, src2, 0.5, 0.0)++ assert actual.dtype == torch.float32+ assert torch.equal(actual, torch.full((2, 2), 3.0))++ def test_get_input_respects_size_and_max_elem(self, device, dtype, monkeypatch):+ rng = random.Random(0)+ monkeypatch.setattr(random, "randint", rng.randint)+ monkeypatch.setattr(random, "random", rng.random)++ src1, src2, *_ = self.get_input(device, dtype, size=5, max_elem=2)++ assert src1.ndim == src2.ndim == 5+ assert max(src1.shape) <= 2@pytest.mark.parametrize("size1, size2", [((2, 5, 5), (4, 5, 5)), ((2, 5, 5), (2, 3, 5, 5))])def test_shape_mismatch(self, device, dtype, size1, size2):@@ -80,7 +118,7 @@ class TestAddWeighted(BaseTester):@pytest.mark.parametrize("size", [2, 3])def test_gradcheck(self, size, device):src1, src2, alpha, beta, gamma = self.get_input(- device, torch.float64, size=3, max_elem=5+ device, torch.float64, size=size, max_elem=5) # to shave time on gradcheckself.gradcheck(kornia.enhance.AddWeighted(alpha, beta, gamma), (src1, src2))diff --git a/tests/geometry/test_conversions.py b/tests/geometry/test_conversions.pyindex db82a59f2..1e8876ea0 100644--- a/tests/geometry/test_conversions.py+++ b/tests/geometry/test_conversions.py@@ -3729,16 +3729,11 @@ class TestNormalTransformPixel(BaseTester):# an older release's kernel literal -- a future kernel reassociation could then fail this# pin on a release that was never measured, without any kornia regression.# - backend, because the mps matmul rounds once where cpu does not (float32: 2**-24 vs 0)- # - machine, because every figure below was taken on macOS arm64 and nothing here has- # run on x86-64/MKL; an unmeasured platform must not inherit a kernel literal.- # What that costs, stated rather than left to be discovered: of the runners- # pr_test_cpu.yml uses, only macos-latest is arm64, so the ubuntu and windows legs- # skip every cell here, and no CI job sets KORNIA_TEST_DTYPE to float16/bfloat16, so- # the reduced-precision cells -- the only ones with a nonzero literal on cpu -- run- # on none of them. The x86-64 rows need one measurement on such a runner to become- # live; deriving them from the arm64 figures instead is exactly what this key exists- # to prevent. The portable half of the docstring's claim is asserted on every CI leg- # by test_convention_agrees_with_normalize_pixel_coordinates above.+ # - machine, because arm64 and x86-64 use different CPU kernels; an unmeasured platform+ # must not inherit another machine's literal. The Linux CPU half-precision CI jobs now+ # exercise the measured torch 2.9.1 x86-64 rows below. Other x86-64 torch/dtype cells+ # still skip until measured. The portable half of the docstring's claim is asserted on+ # every CI leg by test_convention_agrees_with_normalize_pixel_coordinates above.# A cuda row, when one is measured, will need the float32 matmul precision mode in its# key as well: --tf32 rounds a matmul's inputs to 10 mantissa bits and the matrix route# is a matmul, while cpu is unaffected by that setting (executed, all four dtypes).@@ -3754,8 +3749,9 @@ class TestNormalTransformPixel(BaseTester):# check that the bullet's "agree in float32/float64; whether they agree at float16/bfloat16# is a property of the build" still holds -- the cpu bfloat16 row is the whole reason that# clause is build-scoped rather than absolute: 2.5.1 agrees at every size, 2.9.1 does not.- # Snippet used to generate expected (torch + kornia, executed on macOS arm64 against both- # torch 2.9.1 and torch 2.5.1; max|helper - matrix| over the full (2, 28) pixel grid):+ # Snippet used to generate expected (torch + kornia; the arm64 values were executed on macOS+ # against torch 2.9.1 and 2.5.1, and the x86-64 values on Linux against torch 2.9.1;+ # max|helper - matrix| over the full (2, 28) pixel grid):# cpu 2.9.1: float64 -> 0.0 float32 -> 0.0 float16 -> 0.0009765625 bfloat16 -> 0.00390625# cpu 2.5.1: float64 -> 0.0 float32 -> 0.0 float16 -> 0.0009765625 bfloat16 -> 0.0# mps, both: float32 -> 5.960464477539063e-08 (2**-24) float16 -> 0.0009765625@@ -3776,6 +3772,10 @@ class TestNormalTransformPixel(BaseTester):("2.5.1", "cpu", "arm64", torch.float16): 0.0009765625,("2.9.1", "cpu", "arm64", torch.bfloat16): 0.00390625,("2.5.1", "cpu", "arm64", torch.bfloat16): 0.0,+ ("2.9.1", "cpu", "x86_64", torch.float64): 0.0,+ ("2.9.1", "cpu", "x86_64", torch.float32): 0.0,+ ("2.9.1", "cpu", "x86_64", torch.float16): 0.0009765625,+ ("2.9.1", "cpu", "x86_64", torch.bfloat16): 0.00390625,("2.9.1", "mps", "arm64", torch.float32): 2.0**-24,("2.5.1", "mps", "arm64", torch.float32): 2.0**-24,("2.9.1", "mps", "arm64", torch.float16): 0.0009765625,diff --git a/tests/integration/test_conversions.py b/tests/integration/test_conversions.pyindex fc4a8c9a2..c3e520dad 100644--- a/tests/integration/test_conversions.py+++ b/tests/integration/test_conversions.py@@ -202,11 +202,10 @@ class TestAngleOfRotations(BaseTester):return rot_m, axis@pytest.mark.parametrize("axis_name", ("x", "y", "z"))- def test_axis_angle_to_rotation_matrix(self, axis_name, device, dtype, atol, rtol):+ def test_axis_angle_to_rotation_matrix(self, axis_name, device, dtype, atol, rtol, test_rng_seed):# Random angle in [-pi..pi]- angle = torch.tensor(- (np.random.default_rng().random(size=(2, 1)) * 2.0 * np.pi - np.pi), device=device, dtype=dtype- )+ angle_values = np.random.default_rng(test_rng_seed).random(size=(2, 1)) * 2.0 * np.pi - np.pi+ angle = torch.tensor(angle_values, device=device, dtype=dtype)rot_m, axis = TestAngleOfRotations.axis_and_angle_to_rotation_matrix(axis_name=axis_name, angle=angle, device=device, dtype=dtype)diff --git a/tests/test_half_precision_ci.py b/tests/test_half_precision_ci.pynew file mode 100644index 000000000..9eda297a3--- /dev/null+++ b/tests/test_half_precision_ci.py@@ -0,0 +1,809 @@+# 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.+#++from __future__ import annotations++import random+import shutil+import warnings+from collections import Counter+from dataclasses import replace+from pathlib import Path+from types import SimpleNamespace++import numpy as np+import pytest+import torch++import conftest as project_conftest++from testing.half_precision_ci import (+ ManifestEntry,+ ManifestEnvironment,+ current_environment,+ get_profile,+ parse_manifest,+ seed_test_rng,+ serialize_manifest,+)++pytest_plugins = ["pytester"]+++def _environment(**overrides: str) -> ManifestEnvironment:+ values = {+ "python": "3.11",+ "pytorch": "2.9.1",+ "os": "Linux",+ "arch": "x86_64",+ "pytest": "9.0.3",+ "numpy": "2.3.5",+ "pillow": "12.0.0",+ }+ values.update(overrides)+ return ManifestEnvironment(**values)+++class TestManifestCodec:+ def test_round_trips_phase_and_opaque_exception_identity(self) -> None:+ profile = get_profile("cpu-float16")+ entries = [+ ManifestEntry("setup", "_pytest.outcomes.Failed", "tests/a.py::test_pytest_fail"),+ ManifestEntry("call", "some_test.LocalError", "tests/a.py::test_local[other-bfloat16-text]"),+ ]++ text = serialize_manifest(profile, entries, _environment(), "pytest tests/")+ parsed = parse_manifest(profile, text, _environment())++ assert parsed == {entry.nodeid: entry for entry in entries}+ assert "setup\t_pytest.outcomes.Failed\ttests/a.py::test_pytest_fail" in text+ assert "call\tsome_test.LocalError\ttests/a.py::test_local[other-bfloat16-text]" in text++ @pytest.mark.parametrize("phase", ["", "collect", "teardown"])+ def test_rejects_unsupported_phase(self, phase: str) -> None:+ profile = get_profile("cpu-float16")+ text = serialize_manifest(+ profile,+ [ManifestEntry("call", "builtins.AssertionError", "tests/a.py::test_a")],+ _environment(),+ "pytest tests/",+ ).replace("call\tbuiltins.AssertionError", f"{phase}\tbuiltins.AssertionError")++ with pytest.raises(ValueError, match="unsupported phase"):+ parse_manifest(profile, text, _environment())++ def test_rejects_duplicate_node_ids(self) -> None:+ profile = get_profile("cpu-float16")+ entry = ManifestEntry("call", "builtins.AssertionError", "tests/a.py::test_a")+ text = serialize_manifest(profile, [entry], _environment(), "pytest tests/")+ text += "call\tbuiltins.RuntimeError\ttests/a.py::test_a\n"++ with pytest.raises(ValueError, match="duplicate node ID"):+ parse_manifest(profile, text, _environment())++ def test_rejects_wrong_profile_and_enforced_environment(self) -> None:+ profile = get_profile("cpu-float16")+ text = serialize_manifest(profile, [], _environment(), "pytest tests/")++ with pytest.raises(ValueError, match=r"profile.*cpu-bfloat16"):+ parse_manifest(get_profile("cpu-bfloat16"), text, _environment())+ with pytest.raises(ValueError, match=r"Python.*3.12"):+ parse_manifest(profile, text, _environment(python="3.12"))++ def test_provenance_difference_warns_without_rejecting(self) -> None:+ profile = get_profile("cpu-float16")+ text = serialize_manifest(profile, [], _environment(pytest="8.4.2"), "pytest tests/")++ with warnings.catch_warnings(record=True) as caught:+ warnings.simplefilter("always")+ assert parse_manifest(profile, text, _environment(pytest="9.0.3")) == {}++ assert any("pytest provenance differs" in str(item.message) for item in caught)++ def test_focus_warns_but_complete_rejects_compatibility_difference(self, tmp_path: Path) -> None:+ from testing.half_precision_ci import KnownFailureTracker++ profile = get_profile("cpu-float16")+ environment = current_environment()+ path = tmp_path / "cpu_float16.txt"+ path.write_text(+ serialize_manifest(profile, [], replace(environment, python="0.0"), "pytest tests/"),+ encoding="utf-8",+ )++ with pytest.warns(UserWarning, match="Python compatibility differs"):+ KnownFailureTracker(profile, path, mode="focus")+ with pytest.raises(ValueError, match="Python mismatch"):+ KnownFailureTracker(profile, path, mode="complete")+++def _write_profile_manifest(directory: Path, phase: str, exception: str, nodeid: str) -> Path:+ profile = get_profile("cpu-float16")+ path = directory / "cpu_float16.txt"+ path.write_text(+ serialize_manifest(+ profile,+ [ManifestEntry(phase, exception, nodeid)], # type: ignore[arg-type]+ current_environment(),+ "pytest tests/",+ ),+ encoding="utf-8",+ )+ return path+++def _rng_states() -> tuple[object, tuple, torch.Tensor]:+ return (+ random.getstate(),+ np.random.get_state(), # noqa: NPY002 - verify the process-global state is unchanged.+ torch.random.get_rng_state(),+ )+++def _assert_rng_states_equal(+ first: tuple[object, tuple, torch.Tensor], second: tuple[object, tuple, torch.Tensor]+) -> None:+ assert first[0] == second[0]+ assert first[1][0] == second[1][0]+ assert np.array_equal(first[1][1], second[1][1])+ assert first[1][2:] == second[1][2:]+ assert torch.equal(first[2], second[2])+++def test_seed_test_rng_is_pure_stable_and_node_specific() -> None:+ before = _rng_states()++ first = seed_test_rng("tests/a.py::test_a[cpu-float16]")+ other = seed_test_rng("tests/a.py::test_b[cpu-float16]")+ repeated = seed_test_rng("tests/a.py::test_a[cpu-float16]")++ assert repeated == first+ assert other != first+ assert first == 495_473_945+ _assert_rng_states_equal(before, _rng_states())+++def test_profile_rng_isolation_restores_all_global_states() -> None:+ before = _rng_states()++ with project_conftest._isolated_test_rng(seed_test_rng("tests/a.py::test_a[cpu-float16]")):+ random.random()+ np.random.random() # noqa: NPY002+ torch.rand(())++ _assert_rng_states_equal(before, _rng_states())+++def test_rng_seed_fixture_is_available_without_a_profile(test_rng_seed: int, request: pytest.FixtureRequest) -> None:+ assert test_rng_seed == seed_test_rng(request.node.nodeid)+++def test_eager_rng_audit_matches_exact_inventory() -> None:+ """Validate audited (path, line, name) triples as a multiset, so a stale line still fails."""+ from testing.half_precision_eager_rng import AUDITED_EAGER_RNG_CALLS, find_eager_rng_calls++ discovered = Counter(+ (call.path, call.line, call.name) for call in find_eager_rng_calls(Path(project_conftest.__file__).parent)+ )+ audited = Counter((entry.call.path, entry.call.line, entry.call.name) for entry in AUDITED_EAGER_RNG_CALLS)++ stale = sorted((audited - discovered).elements())+ missing = sorted((discovered - audited).elements())+ assert not stale, f"audited entries with no matching call site (stale line?): {stale}"+ assert not missing, f"eager RNG call sites missing from the audit: {missing}"+++def test_eager_rng_scanner_skips_lazy_function_and_lambda_bodies(tmp_path: Path) -> None:+ from testing.half_precision_eager_rng import EagerRngCall, find_eager_rng_calls++ (tmp_path / "test_sample.py").write_text(+ """+import torch++module_value = torch.rand(1)++class TestSample:+ class_value = torch.randn(1)++ @pytest.mark.parametrize("value", [torch.randint(0, 2, (1,))])+ def test_case(self, value=torch.randperm(2)):+ torch.rand(1)++lazy = lambda: torch.randn(1)+""",+ encoding="utf-8",+ )++ assert find_eager_rng_calls(tmp_path) == (+ EagerRngCall("test_sample.py", 4, "torch.rand"),+ EagerRngCall("test_sample.py", 7, "torch.randn"),+ EagerRngCall("test_sample.py", 9, "torch.randint"),+ EagerRngCall("test_sample.py", 10, "torch.randperm"),+ )+++def test_eager_rng_node_coverage_is_boundary_aware() -> None:+ from testing.half_precision_eager_rng import eager_rng_calls_for_node++ prefix = "tests/enhance/test_core.py::TestAddWeighted::test_shape"+ assert len(eager_rng_calls_for_node(prefix)) == 3+ assert len(eager_rng_calls_for_node(f"{prefix}[cpu-float16-case]")) == 3+ assert eager_rng_calls_for_node(f"{prefix}_mismatch[cpu-float16]") == ()+ assert eager_rng_calls_for_node("tests/core/test_check.py::TestCheckShape::test_valid[cpu-float16]") == ()+++def _install_candidate_recorder(pytester: pytest.Pytester) -> Path:+ output = pytester.path / "candidate.txt"+ pytester.makeconftest(+ """+ from pathlib import Path++ from testing.half_precision_ci import FailureRecorder, get_profile+++ def pytest_configure(config):+ recorder = FailureRecorder(+ get_profile("cpu-float16"),+ Path(__file__).with_name("candidate.txt"),+ rootpath=config.rootpath,+ previous_entries={},+ )+ config.pluginmanager.register(recorder, "half-precision-failure-recorder")+ """+ )+ return output+++def test_failure_recorder_writes_complete_v1_candidate_in_nodeid_order(pytester: pytest.Pytester) -> None:+ output = _install_candidate_recorder(pytester)+ pytester.makepyfile(+ test_sample="""+ import pytest+++ def test_z_failure():+ raise ValueError("second after sorting")+++ def test_a_failure():+ raise AssertionError("first after sorting")+++ @pytest.fixture+ def failed_setup():+ raise RuntimeError("fixture setup failure")+++ def test_setup_failure(failed_setup):+ pass+++ def test_kornia_failure():+ from kornia.core.exceptions import ShapeError++ raise ShapeError("kornia validation failure")+++ def test_skip():+ pytest.skip("not a failure")+++ @pytest.mark.xfail(reason="already tracked")+ def test_existing_xfail():+ raise RuntimeError("not a new failure")+ """+ )++ result = pytester.runpytest("-q")++ assert result.ret == pytest.ExitCode.TESTS_FAILED+ recorded = output.read_text(encoding="utf-8")+ entries = parse_manifest(get_profile("cpu-float16"), recorded, current_environment(), source=output)+ assert list(entries.values()) == [+ ManifestEntry("call", "builtins.AssertionError", "test_sample.py::test_a_failure"),+ ManifestEntry("call", "kornia.core.exceptions.ShapeError", "test_sample.py::test_kornia_failure"),+ ManifestEntry("setup", "builtins.RuntimeError", "test_sample.py::test_setup_failure"),+ ManifestEntry("call", "builtins.ValueError", "test_sample.py::test_z_failure"),+ ]+ assert "NEW: call\tbuiltins.AssertionError\ttest_sample.py::test_a_failure" in result.stdout.str()+++ "scenario", ["collection-error", "collect-only", "early-stop", "interrupt", "relevant-teardown"]+)+def test_failure_recorder_preserves_existing_candidate_on_incomplete_run(+ pytester: pytest.Pytester, scenario: str+) -> None:+ output = _install_candidate_recorder(pytester)+ output.write_text("preserve me\n", encoding="utf-8")+ if scenario == "collection-error":+ pytester.makepyfile(test_sample="raise RuntimeError('import failure')")+ args = ("-q",)+ elif scenario == "collect-only":+ pytester.makepyfile(test_sample="def test_ok(): pass")+ args = ("--collect-only", "-q")+ elif scenario == "early-stop":+ pytester.makepyfile(test_sample="def test_a(): assert False\ndef test_b(): pass")+ args = ("-x", "-q")+ elif scenario == "interrupt":+ pytester.makepyfile(test_sample="def test_interrupt(): raise KeyboardInterrupt()")+ args = ("-q",)+ else:+ pytester.makepyfile(+ test_sample="""+ import pytest++ @pytest.fixture+ def broken_teardown():+ yield+ raise RuntimeError("teardown")++ def test_failure(broken_teardown):+ raise AssertionError("call")+ """+ )+ args = ("-q",)++ if scenario == "interrupt":+ pytester.runpytest_subprocess(*args)+ else:+ pytester.runpytest(*args)++ assert output.read_text(encoding="utf-8") == "preserve me\n"+++def test_failure_recorder_aborted_clean_run_fails_session(pytester: pytest.Pytester) -> None:+ _install_candidate_recorder(pytester)+ pytester.makepyfile(test_sample="def test_ok(): pass")++ result = pytester.runpytest("--collect-only", "-q")++ assert result.ret == pytest.ExitCode.TESTS_FAILED+ assert "known-failure candidate ABORTED" in result.stdout.str()+++def test_failure_recorder_allows_unrelated_teardown_as_ordinary_red_noise(pytester: pytest.Pytester) -> None:+ output = _install_candidate_recorder(pytester)+ pytester.makepyfile(+ test_sample="""+ import pytest++ @pytest.fixture+ def broken_teardown():+ yield+ raise RuntimeError("teardown")++ def test_teardown_only(broken_teardown):+ pass+ """+ )++ result = pytester.runpytest("-q")++ assert result.ret == pytest.ExitCode.TESTS_FAILED+ assert (+ parse_manifest(+ get_profile("cpu-float16"), output.read_text(encoding="utf-8"), current_environment(), source=output+ )+ == {}+ )+++def test_failure_recorder_refuses_nodes_fed_by_eager_rng(pytester: pytest.Pytester) -> None:+ output = _install_candidate_recorder(pytester)+ output.write_text("preserve me\n", encoding="utf-8")+ test_path = pytester.path / "tests" / "enhance"+ test_path.mkdir(parents=True)+ (test_path / "test_core.py").write_text(+ """+class TestAddWeighted:+ def test_shape(self):+ raise AssertionError("would be non-reproducible")+""",+ encoding="utf-8",+ )++ # Keep the nested collection isolated from modules imported by the outer full-suite run.+ result = pytester.runpytest_subprocess("tests", "-q")++ assert output.read_text(encoding="utf-8") == "preserve me\n"+ assert "eager RNG" in result.stdout.str()+++def test_record_destination_rejects_checked_in_and_symlink_aliases(tmp_path: Path) -> None:+ from testing.half_precision_ci import validate_record_destination++ root = Path(project_conftest.__file__).parent+ checked_in = root / "testing" / "half_precision_xfails" / "cpu_float16.txt"+ alias = tmp_path / "candidate.txt"+ try:+ alias.symlink_to(checked_in)+ except OSError as error:+ pytest.skip(f"symlinks are unavailable: {error}")++ destinations = (+ checked_in,+ checked_in.relative_to(root),+ Path("testing/../testing/half_precision_xfails/cpu_float16.txt"),+ )+ for destination in destinations:+ with pytest.raises(ValueError, match="checked-in manifest"):+ validate_record_destination(destination, root)+ with pytest.raises(ValueError, match="checked-in manifest"):+ validate_record_destination(alias, root)+++def test_record_destination_rejects_other_git_tracked_files() -> None:+ from testing.half_precision_ci import validate_record_destination++ root = Path(project_conftest.__file__).parent+ if shutil.which("git") is None or not (root / ".git").exists():+ pytest.skip("requires Git and a Git checkout")+ with pytest.raises(ValueError, match="Git-tracked"):+ validate_record_destination(root / "TESTING.md", root)+++def test_previous_manifest_entries_allow_environment_change(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:+ from testing.half_precision_ci import ManifestProfile, _previous_manifest_entries++ profile = ManifestProfile("cpu-float16", "float16", tmp_path / "cpu_float16.txt")+ recorded_environment = current_environment()+ entry = ManifestEntry("call", "builtins.AssertionError", "tests/a.py::test_a[cpu-float16]")+ profile.manifest_path.write_text(+ serialize_manifest(profile, [entry], recorded_environment, "pytest tests/"), encoding="utf-8"+ )+ monkeypatch.setattr(+ "testing.half_precision_ci.current_environment",+ lambda: replace(recorded_environment, python="0.0", pytorch="0.0"),+ )++ with pytest.warns(UserWarning, match="compatibility differs"):+ assert _previous_manifest_entries(profile) == {entry.nodeid: entry}+++def _run_exact_manifest_case(+ pytester: pytest.Pytester,+ *,+ expected_phase: str = "call",+ expected_exception: str = "builtins.AssertionError",+ test_body: str = "raise AssertionError('known failure')",+ setup_body: str = "pass",+ teardown_body: str = "pass",+ complete: bool = False,+) -> pytest.RunResult:+ nodeid = "test_sample.py::test_known_failure[cpu-float16]"+ _write_profile_manifest(pytester.path, expected_phase, expected_exception, nodeid)+ pytester.makeconftest(+ f"""+ from pathlib import Path++ from testing.half_precision_ci import KnownFailureTracker, get_profile+++ def pytest_configure(config):+ tracker = KnownFailureTracker(+ get_profile("cpu-float16"),+ Path(__file__).with_name("cpu_float16.txt"),+ mode={"complete" if complete else "focus"!r},+ selectors=(),+ rootpath=config.rootpath,+ )+ config.pluginmanager.register(tracker, "known-half-precision-failure-tracker")+ """+ )+ pytester.makepyfile(+ test_sample=f"""+ import pytest+++ @pytest.fixture(autouse=True)+ def lifecycle_fixture():+ {setup_body}+ yield+ {teardown_body}+++ @pytest.mark.parametrize("unused", [None], ids=["cpu-float16"])+ def test_known_failure(unused):+ {test_body}+ """+ )+ return pytester.runpytest("-q")+++class TestExactKnownFailureLifecycle:+ @pytest.mark.parametrize("phase", ["setup", "call"])+ def test_accepts_exact_phase_and_identity(self, pytester: pytest.Pytester, phase: str) -> None:+ kwargs = {"setup_body": "raise AssertionError('setup')"} if phase == "setup" else {}++ result = _run_exact_manifest_case(pytester, expected_phase=phase, **kwargs)++ result.assert_outcomes(xfailed=1)+ assert result.ret == pytest.ExitCode.OK++ @pytest.mark.parametrize(+ ("expected_phase", "expected_exception", "test_body", "setup_body", "observed"),+ [+ ("call", "builtins.RuntimeError", "raise NotImplementedError('subclass')", "pass", "NotImplementedError"),+ ("setup", "builtins.AssertionError", "raise AssertionError('call')", "pass", "call"),+ ("call", "builtins.AssertionError", "pytest.skip('runtime skip')", "pass", "skip"),+ ],+ )+ def test_rejects_wrong_exact_outcome_with_diagnostic(+ self,+ pytester: pytest.Pytester,+ expected_phase: str,+ expected_exception: str,+ test_body: str,+ setup_body: str,+ observed: str,+ ) -> None:+ result = _run_exact_manifest_case(+ pytester,+ expected_phase=expected_phase,+ expected_exception=expected_exception,+ test_body=test_body,+ setup_body=setup_body,+ )++ assert result.ret == pytest.ExitCode.TESTS_FAILED+ output = result.stdout.str()+ assert "expected" in output+ assert expected_phase in output+ assert expected_exception in output+ assert observed in output+ assert "test_sample.py::test_known_failure[cpu-float16]" in output++ def test_rejects_teardown_after_matching_call(self, pytester: pytest.Pytester) -> None:+ result = _run_exact_manifest_case(+ pytester, teardown_body="raise RuntimeError('teardown after expected call failure')"+ )++ assert result.ret == pytest.ExitCode.TESTS_FAILED+ assert "teardown" in result.stdout.str()++ def test_collection_error_has_no_stale_manifest_advice(self, pytester: pytest.Pytester) -> None:+ _write_profile_manifest(+ pytester.path,+ "call",+ "builtins.AssertionError",+ "test_sample.py::test_known_failure[cpu-float16]",+ )+ pytester.makeconftest(+ """+ from pathlib import Path+ from testing.half_precision_ci import KnownFailureTracker, get_profile++ def pytest_configure(config):+ tracker = KnownFailureTracker(+ get_profile("cpu-float16"), Path(__file__).with_name("cpu_float16.txt"),+ mode="complete", selectors=(), rootpath=config.rootpath,+ )+ config.pluginmanager.register(tracker, "known-half-precision-failure-tracker")+ """+ )+ pytester.makepyfile(test_sample="raise RuntimeError('import exploded')")++ result = pytester.runpytest("-q")++ assert result.ret == pytest.ExitCode.INTERRUPTED+ output = result.stdout.str()+ assert "import exploded" in output+ assert "remove or update" not in output+ assert "not collected" not in output++ def test_collect_only_does_not_validate_runtime_outcomes(self, pytester: pytest.Pytester) -> None:+ nodeid = "test_sample.py::test_known_failure[cpu-float16]"+ _write_profile_manifest(pytester.path, "call", "builtins.AssertionError", nodeid)+ pytester.makeconftest(+ """+ from pathlib import Path+ from testing.half_precision_ci import KnownFailureTracker, get_profile++ def pytest_configure(config):+ tracker = KnownFailureTracker(+ get_profile("cpu-float16"), Path(__file__).with_name("cpu_float16.txt"),+ mode="complete", selectors=(), rootpath=config.rootpath,+ )+ config.pluginmanager.register(tracker, "known-half-precision-failure-tracker")+ """+ )+ pytester.makepyfile(+ test_sample="""+ import pytest++ @pytest.mark.parametrize("unused", [None], ids=["cpu-float16"])+ def test_known_failure(unused):+ raise AssertionError("known failure")+ """+ )++ result = pytester.runpytest("--collect-only", "-q")++ assert result.ret == pytest.ExitCode.OK+ assert "known half-precision failure" not in result.stdout.str()+++class _RecordingConfig:+ def __init__(self, option_name: str, option_value: object, rootpath: Path) -> None:+ options = {+ "keyword": "",+ "markexpr": "",+ "deselect": [],+ "maxfail": 0,+ "lf": False,+ "failedfirst": False,+ "collectonly": False,+ "numprocesses": None,+ "plugins": [],+ }+ options[option_name] = option_value+ self.option = SimpleNamespace(**options)+ self.args = ["tests"]+ self.rootpath = rootpath+ self.invocation_params = SimpleNamespace(args=())+++class _ProfileConfig:+ def __init__(+ self,+ *,+ profile: str | None = "cpu-float16",+ xfail: bool = True,+ verify: bool = False,+ record: str | None = None,+ device: str = "cpu",+ dtype: str = "float32",+ args: tuple[str, ...] = (),+ ) -> None:+ self.option = SimpleNamespace(device=device, dtype=dtype)+ self.invocation_params = SimpleNamespace(args=args)+ self._options = {+ "--known-failure-profile": profile,+ "--xfail-known-failures": xfail,+ "--verify-known-failures": verify,+ "--record-known-failures": record,+ }++ def getoption(self, option: str) -> object:+ return self._options[option]+++class TestProfileConfiguration:+ def test_applies_profile_before_parametrization(self, monkeypatch: pytest.MonkeyPatch) -> None:+ monkeypatch.delenv("KORNIA_TEST_DEVICE", raising=False)+ monkeypatch.delenv("KORNIA_TEST_DTYPE", raising=False)+ config = _ProfileConfig()++ profile = project_conftest._configure_known_failure_profile(config)++ assert profile == get_profile("cpu-float16")+ assert config.option.device == "cpu"+ assert config.option.dtype == "float16"++ @pytest.mark.parametrize(+ ("args", "environment", "match"),+ [+ (("--device=cuda",), {}, "device.*cuda.*cpu"),+ (("--dtype", "float64"), {}, "dtype.*float64.*float16"),+ ((), {"KORNIA_TEST_DTYPE": "bfloat16"}, "dtype.*bfloat16.*float16"),+ ],+ )+ def test_rejects_explicit_profile_conflicts(+ self,+ monkeypatch: pytest.MonkeyPatch,+ args: tuple[str, ...],+ environment: dict[str, str],+ match: str,+ ) -> None:+ monkeypatch.delenv("KORNIA_TEST_DEVICE", raising=False)+ monkeypatch.delenv("KORNIA_TEST_DTYPE", raising=False)+ for key, value in environment.items():+ monkeypatch.setenv(key, value)+ config = _ProfileConfig(args=args, device="cuda" if "device" in match else "cpu", dtype="float64")+ if environment:+ config.option.dtype = environment["KORNIA_TEST_DTYPE"]++ with pytest.raises(pytest.UsageError, match=match):+ project_conftest._configure_known_failure_profile(config)++ @pytest.mark.parametrize(("verify", "record"), [(True, None), (False, "candidate.txt")])+ def test_complete_modes_require_explicit_profile(self, verify: bool, record: str | None) -> None:+ config = _ProfileConfig(profile=None, xfail=False, verify=verify, record=record)++ with pytest.raises(pytest.UsageError, match="requires --known-failure-profile"):+ project_conftest._configure_known_failure_profile(config)++ def test_unprofiled_xfail_keeps_legacy_mps_configuration(self) -> None:+ config = _ProfileConfig(profile=None, xfail=True, dtype="float32")++ assert project_conftest._configure_known_failure_profile(config) is None+ assert config.option.device == "cpu"+ assert config.option.dtype == "float32"+++ ("option_name", "option_value"),+ [+ ("keyword", "selected"),+ ("markexpr", "unit"),+ ("deselect", ["tests/a.py::test_a"]),+ ("maxfail", 1),+ ("lf", True),+ ("failedfirst", True),+ ("collectonly", True),+ ("numprocesses", 2),+ ("plugins", ["no:cacheprovider"]),+ ],+)+def test_record_mode_rejects_partial_run_options(+ tmp_path: Path, monkeypatch: pytest.MonkeyPatch, option_name: str, option_value: object+) -> None:+ monkeypatch.delenv("KORNIA_TEST_OPTIMIZER", raising=False)+ config = _RecordingConfig(option_name, option_value, tmp_path)++ with pytest.raises(pytest.UsageError, match="does not allow partial-selection options"):+ project_conftest._validate_complete_known_failure_run(config, "--record-known-failures")+++def test_record_mode_rejects_minus_p_when_cacheprovider_is_disabled(tmp_path: Path) -> None:+ """`-p no:cacheprovider` removes the --lf/--ff options entirely; the guard must not need them."""+ option = SimpleNamespace(+ keyword="", markexpr="", deselect=[], maxfail=0, collectonly=False, plugins=["no:cacheprovider"]+ )+ config = SimpleNamespace(+ option=option, args=["tests"], rootpath=tmp_path, invocation_params=SimpleNamespace(args=())+ )++ with pytest.raises(pytest.UsageError, match="does not allow partial-selection options; remove: -p"):+ project_conftest._validate_complete_known_failure_run(config, "--record-known-failures")++[email protected]("dtype", ["float16", "bfloat16"])+def test_recorded_baseline_manifest(dtype: str) -> None:+ profile = get_profile(f"cpu-{dtype}")+ environment = replace(current_environment(), python="other", pytorch="other", os="Other", arch="other")+ with pytest.warns(UserWarning, match="compatibility differs"):+ entries = parse_manifest(+ profile,+ profile.manifest_path.read_text(encoding="utf-8"),+ environment,+ source=profile.manifest_path,+ enforce_compatibility=False,+ )++ assert entries+ assert all(entry.phase in {"setup", "call"} for entry in entries.values())+ assert all("." in entry.exception for entry in entries.values())+++def test_reusable_test_workflow_exposes_complete_profile_input() -> None:+ root = Path(project_conftest.__file__).parent+ workflow = (root / ".github" / "workflows" / "tests.yml").read_text(encoding="utf-8")++ assert "known-failure-profile:" in workflow+ assert "KNOWN_FAILURE_PROFILE: ${{ inputs.known-failure-profile }}" in workflow+ assert "--verify-known-failures" in workflow+ assert '"--known-failure-profile=$KNOWN_FAILURE_PROFILE"' in workflow++[email protected]("workflow_name", ["pr_test_cpu.yml", "scheduled_test_cpu.yml"])+def test_cpu_half_workflow_uses_complete_profile(workflow_name: str) -> None:+ root = Path(project_conftest.__file__).parent+ workflow = (root / ".github" / "workflows" / workflow_name).read_text(encoding="utf-8")++ assert "known-failure-profile: cpu-${{ matrix.pytorch-dtype }}" in workflow