def __init__(self,N):
with tf.variable_scope('Arrow') as scope:
self.N=tf.placeholder_with_default(N,shape=[])
#self.N=tf.constant(N) #how many to sample at a time
self.e1=tf.random_uniform([self.N,1],0,1)
self.e2=tf.random_uniform([self.N,1],0,1)
self.e3=tf.random_uniform([self.N,1],0,1)
self.build()
#WARN. some of these are not trainable: i.e. poly
self.var = tf.contrib.framework.get_variables(scope)
评论列表
文章目录