TransWikia.com

Is there a difference between tf.nn.conv1d and tf.nn.convolution in Tensorflow?

Data Science Asked by Cepeline on March 9, 2021

I want to know what is the difference between a these two. For me, they are the same function, so I do not see the reason of existance two same functions.

One Answer

In TensorFlow 2, they accept different arguments:

tf.nn.convolution(input,...)

Computes sums of N-D convolutions (actually cross-correlation).

input: An (N+2)-D Tensor of type T, of shape [batch_size] + input_spatial_shape + [in_channels]

While the second one is more specific:

tf.nn.conv1d(input,...)

Computes a 1-D convolution given 3-D input and filter tensors.

input: A 3D Tensor.input: A 3D Tensor.

Answered by homocomputeris on March 9, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP