o
    پiL                     @   s   d Z ddlZdddZdS )zFNot to be used by end users, but only for tests of the package itself.    Nc                 C   s2   t j|}td| d|d dd|  d |S )z,Print GPU memory usage with optional messagezGPU z	 memory: i   @z.2fz GB ())torchcudadevice_memory_usedprint)messagegpu_idmem r
   T/home/ubuntu/.local/lib/python3.10/site-packages/torch_memory_saver/testing_utils.pyget_and_print_gpu_memory   s   "r   )r   )__doc__r   r   r
   r
   r
   r   <module>   s    