layers.Conv2d(
filters=32,
kernel_size=5,
strides=(1, 1),
padding='valid',
data_format='channels_last',
dilation_rate=(1, 1),
activation='relu',
use_bias=False,
trainable=True
)
Input:
[batchSize, imageY, imageX, channels]
[imageY, imageX, channels]
Filter:
[kernelY, kernelX, channels, outputChannels]
[kernelY, kernelX, channels, outputChannels]
Output:
[imageY2, imageX2, outputChannels]
[batchSize, imageY2, imageX2, outputChannels]
(batchSize)
jobs will be created.for sample in range(batchSize):
output[sample] = job(
input[sample],
kernel
)
imageX = imageY = 228
kernelX = kernelY = 5
imageX2 = imageY2 = 224
channels = 3
outputChannels = 32
5 * 5 * 3 * 32 + 228 * 228 * 3 = 158352
224 * 224 * 32 = 1605632
same as layers.Conv2d: conv2d_backprop
in
tensorflow/tensorflow/python/ops/nn_ops.py:2290