"""Export portable reference fixtures and compare the native Swift SDK without MLX or Torch.""" from __future__ import annotations import argparse from datetime import datetime, timezone import json from pathlib import Path import platform import subprocess import sys import time import numpy as np ROOT = Path(__file__).resolve().parents[1] sys.path.insert(0, str(ROOT)) from scripts.validate import ( ACCEPTANCE, FIXTURE_NAMES, VARIANTS, atomic_json, compare, fixture_signature, fixtures, load_reference_cache, sha256, ) DTYPES = {"float32": np.dtype("