def _precision_config_proto(precision: Optional[Tuple[(PrecisionType, PrecisionType)]]):
    'Convert an integer to an XLA.PrecisionConfig.'
    if (precision is None):
        return None
    proto = xla_data_pb2.PrecisionConfig()
    proto.operand_precision.append(int(precision[0]))
    proto.operand_precision.append(int(precision[1]))
    return proto
Convert an integer to an XLA.PrecisionConfig.
def _precision_config_proto(precision: Optional[Tuple[(PrecisionType, PrecisionType)]]):
    
    if (precision is None):
        return None
    proto = xla_data_pb2.PrecisionConfig()
    proto.operand_precision.append(int(precision[0]))
    proto.operand_precision.append(int(precision[1]))
    return proto