今天在学习TensorFlow2.0的时候,运行脚本报错,似乎是数据类型的问题。先看看代码吧,代码如下:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# coding: UTF-8
import matplotlib.pyplot as plt
import tensorflow as tf
import numpy as np
plt.rcParams['font.sans-serif'] = ['SimHei']
x1 = tf.constant(np.array(
[137.9...
