class_docstr: Tests SignalConv against scipy.signal.
class_docstr_tok: ["Tests","SignalConv","against","scipy.signal","."]
docstr: Test 2D valid convolutions with different supports/strides.
code: def test_2d_valid_spatial(self):
      """Test 2D valid convolutions with different supports/strides."""
      batch = 1
      padding = "valid"
      channels = 1
      filters = 1
      activation = None
      use_bias = False
      for channel_separable in [False, True]:
          for input_support in [(10, 7), (5, 8)]:
              for kernel_support in [(5, 2), (2, 3), (3, 3)]:
                  for corr in [False, True]:
                      for (
                          strides_down,
                          strides_up,
                          extra_pad_end,
                      ) in zip(
                          [(1, 1), (2, 2), (1, 1), (1, 1), (3, 5)],
                          [(1, 1), (1, 1), (2, 2), (4, 3), (1, 1)],
                          [True, True, False, True, True],
                      ):
                          for data_format in self.data_formats:
                              self.run_or_fail(
                                  self.run_valid,
                                  batch,
                                  input_support,
                                  channels,
                                  filters,
                                  kernel_support,
                                  corr,
                                  strides_down,
                                  strides_up,
                                  padding,
                                  extra_pad_end,
                                  channel_separable,
                                  data_format,
                                  activation,
                                  use_bias,
                              )
  
imports: import os
  from absl.testing import parameterized
  import numpy
  import scipy.signal
  import tensorflow
  from tensorflow_compression.python.layers import initializers
  from tensorflow_compression.python.layers import parameters
  from tensorflow_compression.python.layers import signal_conv
label_desc: Use image node_id 13 for calling the ConvolutionsTest obj's underlying member method code with example usage: obj.test_2d_valid_spatial() without return types