tfmindi.get_backend

Contents

tfmindi.get_backend#

tfmindi.get_backend()#

Get the current computational backend.

Returns the backend based on the following priority: 1. Explicitly set backend via set_backend() 2. Environment variable TFMINDI_BACKEND 3. Automatic detection based on GPU availability

Return type:

str

Returns:

Backend type: “cpu” or “gpu”