文章大纲
环境安装脚本
conda create -n nlp_gputf2 python=3.8 -y
conda activate nlp_gputf2
conda install ipykernel
#bert4keras 无法支持高版本
conda install tensorflow-gpu==2.2.0
pip install pandas
pip install matplotlib
pip install sklearn
pip install bert4keras
使用windows11 在WSL GPU 下 的资源申请与配置
import tensorflow as tf
version = tf.__version__
gpu_ok = tf.test.is_gpu_available