SetAnomalyEnabledΒΆ

Context-manager/Function to enable or disable anomaly detection (NaN checks).

Abstract Signature:

SetAnomalyEnabled(mode: bool)

PyTorch

API: torch.set_anomaly_enabled
Strategy: Direct Mapping

JAX (Core)

API: β€”
Strategy: Macro 'jax.config.update('jax_debug_nans', {mode})'

TensorFlow

API: tf.debugging.enable_check_numerics
Strategy: Direct Mapping

Apple MLX

API: β€”
Strategy: Custom / Partial