transpose_conv2d_channels_last_to_x

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

Ensure the channels axis (known to be the last axis) of input tensor to be placed at the desired axis.

Parameters:
  • input (tf.Tensor) – The input tensor, at least 4-d.
  • channels_last (bool) – Whether or not the channels axis should be the last axis in the output 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