code: def setUpClass(cls):
      t_signal = tf.placeholder("float32", [10, 100, 4], name="x")
      n = tl.layers.InputLayer(t_signal, name="in")
      n = tl.layers.Conv1d(
          n,
          n_filter=32,
          filter_size=3,
          stride=1,
          padding="SAME",
          name="conv1d",
      )
      net1 = tl.layers.SubpixelConv1d(n, scale=2, name="subpixel")
  
      net1.print_layers()
      net1.print_params(False)
  
      cls.net1_shape = net1.outputs.get_shape().as_list()
      cls.net1_layers = net1.all_layers
      cls.net1_params = net1.all_params
      cls.net1_n_params = net1.count_params()
  
      ## 2D
      x = tf.placeholder("float32", [10, 100, 100, 3], name="x")
      n = tl.layers.InputLayer(x, name="in")
      n = tl.layers.Conv2d(
          n,
          n_filter=32,
          filter_size=(3, 2),
          strides=(1, 1),
          padding="SAME",
          name="conv2d",
      )
      net2 = tl.layers.SubpixelConv2d(n, scale=2, name="subpixel2d")
  
      net2.print_layers()
      net2.print_params(False)
  
      cls.net2_shape = net2.outputs.get_shape().as_list()
      cls.net2_layers = net2.all_layers
      cls.net2_params = net2.all_params
      cls.net2_n_params = net2.count_params()
  
file_path: TensorLayer/tests/pending/test_layers_super_resolution.py
imports: import os
  import unittest
  import tensorflow
  import tensorlayer
  from tests.utils import CustomTestCase
label_desc: Use image node_id 1 for calling the Layer_Super_Resolution_Test obj's underlying member method code with example usage: obj.setUpClass(cls) without return types