点此进入CSDN

点此添加QQ好友 加载失败时会显示




摘要: import tensorflow as tf import numpy as np import matplotlib.pyplot as plt BATCH_START = 0 TIME_STEPS = 20 BATCH_SIZE = 20 INPUT_SIZE = 1 OUTPUT_SIZE 阅读全文
posted @ 2020-03-15 20:49 高颜值的殺生丸 阅读(222) 评论(4) 推荐(0) 编辑
摘要: import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data #this is data mnist = input_data.read_data_sets("MNIST_data",one_ho 阅读全文
posted @ 2020-03-15 00:19 高颜值的殺生丸 阅读(527) 评论(0) 推荐(0) 编辑
摘要: import tensorflow as tf import numpy as np # ##Save to file # W = tf.Variable([[4,5,6],[7,8,9]],dtype=tf.float32,name="weight") # b = tf.Variable([[2, 阅读全文
posted @ 2020-03-15 00:18 高颜值的殺生丸 阅读(299) 评论(0) 推荐(0) 编辑
摘要: """ Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly. """ import tensorflow as tf from skl 阅读全文
posted @ 2020-03-15 00:17 高颜值的殺生丸 阅读(340) 评论(0) 推荐(0) 编辑
摘要: import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data import os os.environ["CUDA_DEVICE_ORDER"] = "0,1" mnist = input_dat 阅读全文
posted @ 2020-03-15 00:15 高颜值的殺生丸 阅读(280) 评论(0) 推荐(0) 编辑
摘要: import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets("MNIST_data",one_hot=True) def ad 阅读全文
posted @ 2020-03-15 00:11 高颜值的殺生丸 阅读(197) 评论(0) 推荐(0) 编辑
摘要: """ Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly. """ #tensorboard --logdir="./" impor 阅读全文
posted @ 2020-03-15 00:09 高颜值的殺生丸 阅读(179) 评论(0) 推荐(0) 编辑
摘要: import tensorflow as tf #(tf.float32,[2,2]) input1 = tf.placeholder(tf.float32) input2 = tf.placeholder(tf.float32) output = tf.multiply(input1,input2 阅读全文
posted @ 2020-03-15 00:06 高颜值的殺生丸 阅读(333) 评论(0) 推荐(0) 编辑
摘要: import tensorflow as tf import numpy as np #create data x_data = np.random.rand(100).astype(np.float32) y_data = x_data*0.1+0.3 Weights = tf.Variable( 阅读全文
posted @ 2020-03-15 00:03 高颜值的殺生丸 阅读(158) 评论(0) 推荐(0) 编辑
摘要: import tensorflow as tf matrix1 = tf.constant([[3,3]]) matrix2 = tf.constant([[2],[2]]) product = tf.matmul(matrix1,matrix2) #矩阵相乘 # sess = tf.Session 阅读全文
posted @ 2020-03-15 00:01 高颜值的殺生丸 阅读(199) 评论(0) 推荐(0) 编辑

作者信息

昵称:

刘新宇

园龄:4年6个月


粉丝:1209


QQ:522414928