mirror of
https://github.com/vladmandic/automatic
synced 2026-09-03 03:20:45 +02:00
don't disable mm with uint8
This commit is contained in:
@@ -308,12 +308,12 @@ def sdnq_quantize_layer_weight_dynamic(
|
||||
if (
|
||||
(dtype_dict[current_quantized_matmul_dtype]["is_integer"] and not dtype_dict[current_weights_dtype]["is_integer"])
|
||||
or (
|
||||
dtype_dict[current_weights_dtype]["is_unsigned"] and not dtype_dict[current_quantized_matmul_dtype]["is_unsigned"]
|
||||
and dtype_dict[current_quantized_matmul_dtype]["num_bits"] == dtype_dict[current_weights_dtype]["num_bits"]
|
||||
dtype_dict[current_weights_dtype]["num_bits"] == dtype_dict[current_quantized_matmul_dtype]["num_bits"]
|
||||
and dtype_dict[current_weights_dtype]["is_unsigned"] and not dtype_dict[current_quantized_matmul_dtype]["is_integer"]
|
||||
)
|
||||
or (
|
||||
dtype_dict[weights_dtype]["num_bits"] <= dtype_dict[current_quantized_matmul_dtype]["num_bits"]
|
||||
and dtype_dict[current_quantized_matmul_dtype]["num_bits"] < dtype_dict[current_weights_dtype]["num_bits"]
|
||||
and dtype_dict[current_weights_dtype]["num_bits"] > dtype_dict[current_quantized_matmul_dtype]["num_bits"]
|
||||
)
|
||||
):
|
||||
current_use_quantized_matmul = False
|
||||
|
||||
Reference in New Issue
Block a user