Using TensorFlow version 2.4.1 We will restrict TensorFlow to max 8GB GPU RAM then RAPIDS can use 8GB GPU RAM

import ososenvironCUDA_VISIBLE_DEVICES=0import tensorflow as tfimport tensorflowkerasbackend as KprintUsing TensorFlow versiontf__version__# RESTRICT TENSORFLOW TO 8GB OF GPU RAM# SO THAT WE HAVE 8GB