2019年5月29日

摘要: import tensorflow as tfimg1 = tf.constant(value=[[[[1],[2],[3],[4]],[[1],[2],[3],[4]],[[1],[2],[3],[4]],[[1],[2],[3],[4]]]],dtype=tf.float32)img2 = tf 阅读全文
posted @ 2019-05-29 19:04 happygril3 阅读(5652) 评论(0) 推荐(0)
摘要: import numpy as npfilter_primes = np.array([2., 3., 5., 7., 11., 13.], dtype=np.float32)x = tf.constant(np.arange(1, 13+1, dtype=np.float32).reshape([ 阅读全文
posted @ 2019-05-29 17:36 happygril3 阅读(152) 评论(0) 推荐(0)
摘要: import tensorflow as tftf.reset_default_graph()v1 = tf.Variable(tf.constant(1.0, shape=[1]), name="v1")v2 = tf.Variable(tf.constant(2.0), name="v2")v3 阅读全文
posted @ 2019-05-29 14:56 happygril3 阅读(327) 评论(0) 推荐(0)

导航