Get the amount of free memory for CUDA operations.
str
Can be “available” or “total”.
The amount of available or total memory as a human-readable string.