第一个tensorflow小程序——异或门实现

代码:python #author@chengxiaona import tensorflow as tf import numpy as np #输入训练数据,这里是python的list, 也能够定义为numpy的ndarray x_data = [[1., 0.], [0., 1.], [0., 0.], [1., 1.]] #定义占位符,占位符在运行图的时候必须feed数据 x = t
相关文章
相关标签/搜索