Visual Studio Code 支持TensorFlow配置支持


 

首先选择解释器

选择TensorFlow版本的conda版本 (当然你如果是通过python单独安装的TensorFlow也可以)

编辑器输入代码,进行测试

import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))

成功~

 

https://code.visualstudio.com/docs/python/python-tutorial   更多VScode技巧查看官网教程


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM