0

I need to downsample a tensor by a factor 2, it is a 1-D tensor: enter image description here

I don't know how can I do it

Alberto Sinigaglia
  • 12,097
  • 2
  • 20
  • 48
jordi
  • 3
  • 2

2 Answers2

0

If you want to do it using interpolation, the easiest way to do it would be through average pooling. Learn more here.

amur
  • 67
  • 8
0

What you are you are looking for is probably tf.squeeze(tensor), which removes the dimensions that are 1

Alberto Sinigaglia
  • 12,097
  • 2
  • 20
  • 48