
TensorFlow一维卷积应用详解
5星
- 浏览量: 0
- 大小:None
- 文件类型:PDF
简介:
本文章全面解析了使用TensorFlow进行一维卷积操作的方法与技巧,涵盖了从基础概念到高级应用的技术细节。
直接看代码:
```python
import tensorflow as tf
import numpy as np
input = tf.constant(1, shape=(64, 10, 1), dtype=tf.float32) #shape=(batch,in_width,in_channels)
w = tf.constant(3, shape=(3, 1, 32), dtype=tf.float32) #shape=(filter_width,in_channels,out_channels)
conv1 = tf.nn.conv1d(input=input,
```
注意:代码最后一行的 `inpu` 应改为 `input`。
全部评论 (0)
还没有任何评论哟~


