"""CPU-free stand-in for mlx.core, only for exercising bench_mlx.py control flow in a sandbox.""" import numpy as np __version__ = "stub" inf = float("inf") _peak = [0] def array(x): return np.asarray(x) def clear_cache(): pass def reset_peak_memory(): _peak[0] = 0 def get_peak_memory(): return 17.5e9 def default_device(): return "stub" class random: @staticmethod def seed(s): pass