QuantizePerTensorΒΆ

Converts a float tensor to a quantized tensor with given scale and zero point.

Abstract Signature:

QuantizePerTensor(input: Tensor, scale: float, zero_point: int, dtype)

PyTorch

API: torch.quantize_per_tensor
Strategy: Direct Mapping

JAX (Core)

API: β€”
Strategy: Custom / Partial

Keras

API: β€”
Strategy: Custom / Partial

TensorFlow

API: tf.quantization.quantize
Strategy: Direct Mapping

Apple MLX

API: β€”
Strategy: Custom / Partial

Flax NNX

API: β€”
Strategy: Custom / Partial

PaxML / Praxis

API: β€”
Strategy: Custom / Partial