cwt.py 文件源码

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

项目:cwt-tensorflow 作者: nickgeoca 项目源码 文件源码
def conv1DWavelet(wav, waveletWidth, waveletEquation):
    kernelSamples = waveletWidth * 10
    kernel = waveletEquation(waveletWidth, kernelSamples)
    kernel = tf.reverse(kernel, [0])
    kernel = tf.reshape(kernel, tf.stack([kernelSamples,1,1,1]))

    conv = tf.nn.conv2d(wav, kernel, [1,1,1,1], padding='SAME') 
    conv = tf.squeeze(tf.squeeze(conv))

    return conv
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号