高效码农

撰写、分享国内外先进的IT技术

标签 TensorFlow 下的文章

August 18, 2019

Tensorflow报错信息修改

一、Please use tf.compat.v1.get_variable instead确切的说不是报错,是警告⚠️;原因: 为了使TensorFlow在版本2.0中更加“Pythonic”,根据设计,TF 2.0没有tf.Session。修改方法:import tensorflow as tf tf = tf.compat.v1或者:import tensorflow.compat....
May 11, 2019

机器学习准备工作:TensorFlow 基础知识

TensorFlow 中编码的"Hello World"hello_world.ipynb:官方练习地址以下代码块为"Hello World"TensorFlow 程序。其中包含初始化代码(导入 TensorFlow 模块并启用"eager execution",我们将在后续练习中详细介绍此操作),然后输出"Hello, world!"字符串常量。#!/usr/bin/python3.7.3...