helper.py 文件源码

python
阅读 32 收藏 0 点赞 0 评论 0

项目:ste-GAN-ography2 作者: bin2415 项目源码 文件源码
def conv_layer(x, filter_shape, stride, sigmoid, name):
    filter_width, num_inputs, num_outputs = filter_shape
    W = weight_variable(filter_shape, 0.1, name + "/W")
    b = bias_variable([num_outputs], 0.0, name + "/b")
    z = tf.nn.conv1d(x, W, stride = stride, padding = 'SAME') + b
    a = tf.nn.sigmoid(z) if sigmoid else tf.nn.tanh(z)
    return a
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号