transpose_conv2d_channels_x_to_last

tfsnippet.ops.transpose_conv2d_channels_x_to_last(input, channels_last, name=None)

Ensure the channels axis of input tensor to be placed at the last axis.

Parameters:
  • input (tf.Tensor) – The input tensor, at least 4-d.
  • channels_last (bool) – Whether or not the channels axis is the last axis in the input tensor?
  • name (str) – Default name of the name scope. If not specified, generate one according to the method name.
Returns:

The (maybe) transposed output tensor.

Return type:

tf.Tensor