title: How to resize (interpolate) a tensor in Keras?
body: <p>I want to resize a tensor (between layers) of size say (None, 2, 7, 512) to (None, 2, 8, 512), by interpolating it (say using nearest neighbor), similar to this function <code>tf.image.resize_nearest_neighbor</code> available in Tensorflow. </p>
  
  <p>Is there any way to do that? </p>
  
  <p>I tried directly using the Tensorflow function <code>tf.image.resize_nearest_neighbor</code> and the pass the tensors to the next Keras layer, but with the next layer this error was thrown:</p>
  
  <blockquote>
    <p>AttributeError: 'Tensor' object has no attribute '_keras_history' </p>
  </blockquote>
  
  <p>I believe this is due to some attributes that are missing in Tensorflow tensors, which makes sense as the layer expects Keras tensors to be passed. </p>