Resize 3D data in tensorflow like tf.image.resize_images
问题 I need to resize some 3D data, like in the tf.image.resize_images method for 2d data. I was thinking I could try and run tf.image.resize_images on it in a loop and swap axes, but I thought there must be an easier way. Simple nearest neighbour should be fine. Any ideas? It's not ideal, but I could settle for the case where the data is just 0 or 1 and use something like: tf.where(boolMap, tf.fill(data_im*2, 0), tf.fill(data_im*2), 1) But I'm not sure how to get boolMap . Would use of tf.while