class_docstr: Keras layer for upsampling a Tensor to be the same shape as another Tensor.
      
class_docstr_tok: ["Keras","layer","for","upsampling","a","Tensor","to","be","the","same","shape","as","another","Tensor","."]
code: def call(self, inputs, **kwargs):
      source, target = inputs
      target_shape = keras.backend.shape(target)
      if keras.backend.image_data_format() == "channels_first":
          source = tensorflow.transpose(source, (0, 2, 3, 1))
          output = backend.resize_images(
              source,
              (target_shape[2], target_shape[3]),
              method="nearest",
          )
          output = tensorflow.transpose(output, (0, 3, 1, 2))
          return output
      else:
          return backend.resize_images(
              source,
              (target_shape[1], target_shape[2]),
              method="nearest",
          )
  
imports: import tensorflow
  from tensorflow import keras
  from ..None import backend
  from ..utils import anchors
  import numpy
label_desc: Use image node_id 1 for calling the UpsampleLike obj's underlying member method code with example usage: obj.call(inputs) and returns: output, backend