【发布时间】:2020-09-08 18:39:09
【问题描述】:
我正在遵循TensorFlow 2 quickstart for experts 指南并试图理解创建Conv2D 实例的第一个论点。
filters: Integer, the dimensionality of the output space
(i.e. the number of output filters in the convolution).
由于指南对batch 大小和filters 使用相同的32,选择32 是否有特定原因,这两个参数是否应该始终相互匹配?
相关代码:
train_ds = tf.data.Dataset.from_tensor_slices(
(x_train, y_train)).shuffle(10000).batch(32)
... ...
self.conv1 = Conv2D(32, 3, activation='relu')
【问题讨论】:
标签: python tensorflow keras conv-neural-network