View Source Axon.Quantization.QTensor (Axon v0.7.0)

Representation of a quantized tensor.

A quantized tensor stores information about the quantized value, scale, and zero-point. This module contains lower-level functions for converting to and from quantized tensors.

In most cases, you should prefer to use the public APIs in Axon.Quantization.

Summary

Functions

Converts a regular float tensor into a quantized tensor.

Functions

Link to this function

from_tensor(x, opts \\ [])

View Source

Converts a regular float tensor into a quantized tensor.