tensorflow环境配置实用命令

    科技2022-08-17  140

    一、如何查看是否成功调用GPIU

    https://zhuanlan.zhihu.com/p/107683614

    最基本的命令:

    import tensorflow as tf gpu_ok = tf.test.is_gpu_available() print("tf version:", tf.__version__) print("use GPU", gpu_ok)

    二、查看虚拟环境列表

    conda info --envs

    三、新建虚拟环境

    conda create -n myenv python=3.6

    四、删除虚拟环境

    conda remove -n myenv --all
    Processed: 0.008, SQL: 9