define g_fp16_io in train.m (fixes linker error)

This commit is contained in:
imperatormk 2026-03-03 17:16:22 +01:00
parent ef6dce373f
commit 0cf13e2b84
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,8 @@
#include <math.h>
#include "backward.h"
int g_fp16_io = 0; // M1/M2: use fp16 I/O when cast op unsupported
static mach_timebase_info_data_t g_tb;
static double ticksToMs(uint64_t t) { return (double)t * g_tb.numer / g_tb.denom / 1e6; }