def transpose(self, name=None):
    """Returns matching `Conv1D` module.

    Args:
      name: Optional string assigning name of transpose module. The default name
        is constructed by appending "_transpose" to `self.name`.

    Returns:
      `Conv1D` module.
    """
    if name is None:
      name = self.module_name + "_transpose"

    if self._data_format == DATA_FORMAT_NWC:
      stride = self._stride[1:-1]
    else:  # self._data_format == DATA_FORMAT_NCW
      stride = self._stride[2:]

    return Conv1D(output_channels=lambda: self.input_channels,
                  kernel_shape=self.kernel_shape,
                  stride=stride,
                  padding=self.padding,
                  use_bias=self._use_bias,
                  initializers=self.initializers,
                  partitioners=self.partitioners,
                  regularizers=self.regularizers,
                  data_format=self._data_format,
                  custom_getter=self._custom_getter,
                  name=name)
def transpose ( self , name = None ) : if name is None : name = self . module_name + "_transpose" if self . _data_format == DATA_FORMAT_NWC : stride = self . _stride [ 1 : - 1 ] else : stride = self . _stride [ 2 : ] return Conv1D ( output_channels = lambda : self . input_channels , kernel_shape = self . kernel_shape , stride = stride , padding = self . padding , use_bias = self . _use_bias , initializers = self . initializers , partitioners = self . partitioners , regularizers = self . regularizers , data_format = self . _data_format , custom_getter = self . _custom_getter , name = name )
Returns matching `Conv1D` module.

    Args:
      name: Optional string assigning name of transpose module. The default name
        is constructed by appending "_transpose" to `self.name`.

    Returns:
      `Conv1D` module.