if layer_type not in quantized_layers:
params = getattr(layer, layer_type, None)
params = params.ListFields() if params else []
param_types = [p[0].message_type.name if p[0].message_type else None for p in params]
if "WeightParams" in param_types:
raise NotImplementedError("Quantization for layer "" + layer_type + "" not implemented.")
continue // print("Skipping layer {}. No need to quantize.".format(layer.name))