a
    Sicq                     @   s   d Z ddlZdddZdS )z2Utilities common to CIFAR10 and CIFAR100 datasets.    Nlabelsc           	      C   s   t | dF}tj|dd}i }| D ]\}}|||d< q&|}W d   n1 sV0    Y  |d }|| }||jd dd	d	}||fS )
zInternal utility for parsing CIFAR data.

    Args:
        fpath: path the file to parse.
        label_key: key for label data in the retrieve
            dictionary.

    Returns:
        A tuple `(data, labels)`.
    rbbytes)encodingutf8Ndatar          )opencPickleloaditemsdecodereshapeshape)	fpath	label_keyfdZ	d_decodedkvr   r    r   P/var/www/html/django/DPS/env/lib/python3.9/site-packages/keras/datasets/cifar.py
load_batch   s    "r   )r   )__doc___pickler   r   r   r   r   r   <module>   s   