AutocastΒΆ

Context manager or decorator to allow regions of script to run in mixed precision.

Abstract Signature:

Autocast(device_type: str, dtype: dtype, enabled: bool = True, cache_enabled: bool)

PyTorch

API: torch.autocast
Strategy: Direct Mapping

TensorFlow

API: β€”
Strategy: Macro 'tf.keras.mixed_precision.Policy('mixed_float16')'