I installed the tensorflow package in my anaconda base environment. I noticed that from version 2.1, it contains both CPU and GPU packages.
Now, while importing, the syntax will stay the same,
import tensorflow as tf
But if I want to use only the CPU version (when the network is small and running on GPU might be slower) or the GPU version (for the rest), how do I specify that?