Skip to content
fn

held_at

int * held_at(int * g, int * t, Dtype dt)

t held at the declared dtype dt: t itself when it already is, a cast when only the width or the kind of a real value differs, and nil when dt has no MPSGraph type or the cast would cross between real and complex (which a cast does not mean). nil fails the build, so the trace runs eagerly instead of reaching MPSGraph with two dtypes.