Classes | |
class | FakeAffineTensorQuantFunction |
class | FakeTensorQuantFunction |
class | ScaledQuantDescriptor |
class | TensorQuantFunction |
Functions | |
def | _tensor_quant (inputs, amax, num_bits=8, unsigned=False, narrow_range=True) |
|
private |
Shared function body between TensorQuantFunction and FakeTensorQuantFunction
pytorch_quantization.tensor_quant.QuantDescriptor = ScaledQuantDescriptor |
pytorch_quantization.tensor_quant.QUANT_DESC_8BIT_PER_TENSOR = QuantDescriptor(num_bits=8) |
pytorch_quantization.tensor_quant.QUANT_DESC_UNSIGNED_8BIT_PER_TENSOR = QuantDescriptor(num_bits=8, unsigned=True) |
pytorch_quantization.tensor_quant.QUANT_DESC_8BIT_CONV1D_WEIGHT_PER_CHANNEL = QuantDescriptor(num_bits=8, axis=(0)) |
pytorch_quantization.tensor_quant.QUANT_DESC_8BIT_CONV2D_WEIGHT_PER_CHANNEL = QuantDescriptor(num_bits=8, axis=(0)) |
pytorch_quantization.tensor_quant.QUANT_DESC_8BIT_CONV3D_WEIGHT_PER_CHANNEL = QuantDescriptor(num_bits=8, axis=(0)) |
pytorch_quantization.tensor_quant.QUANT_DESC_8BIT_LINEAR_WEIGHT_PER_ROW = QuantDescriptor(num_bits=8, axis=(0)) |
pytorch_quantization.tensor_quant.QUANT_DESC_8BIT_CONVTRANSPOSE1D_WEIGHT_PER_CHANNEL = QuantDescriptor(num_bits=8, axis=(1)) |
pytorch_quantization.tensor_quant.QUANT_DESC_8BIT_CONVTRANSPOSE2D_WEIGHT_PER_CHANNEL = QuantDescriptor(num_bits=8, axis=(1)) |
pytorch_quantization.tensor_quant.QUANT_DESC_8BIT_CONVTRANSPOSE3D_WEIGHT_PER_CHANNEL = QuantDescriptor(num_bits=8, axis=(1)) |
pytorch_quantization.tensor_quant.tensor_quant = amp.promote_function(TensorQuantFunction.apply) |
pytorch_quantization.tensor_quant.fake_tensor_quant = amp.promote_function(FakeTensorQuantFunction.apply) |
pytorch_quantization.tensor_quant.fake_affine_tensor_quant = amp.promote_function(FakeAffineTensorQuantFunction.apply) |