import tensorflow as tf


def get_avail_gpu():
    return tf.config.list_physical_devices('GPU')


def how_many_avail_gpu():
    return len(get_avail_gpu())


def are_gpu_avail():
    return len(get_avail_gpu()) >= 1

c38315339742e74015d0a6e9ae899cddaa54a7aa
<mask token>

<mask token>


def are_gpu_avail():
    return len(get_avail_gpu()) >= 1

<mask token>


def how_many_avail_gpu():
    return len(get_avail_gpu())


def are_gpu_avail():
    return len(get_avail_gpu()) >= 1

<mask token>


def get_avail_gpu():
    return tf.config.list_physical_devices('GPU')


def how_many_avail_gpu():
    return len(get_avail_gpu())


def are_gpu_avail():
    return len(get_avail_gpu()) >= 1

import tensorflow as tf


def get_avail_gpu():
    return tf.config.list_physical_devices('GPU')


def how_many_avail_gpu():
    return len(get_avail_gpu())


def are_gpu_avail():
    return len(get_avail_gpu()) >= 1
