  
  from lib.model.nn_blocks import NNBlocks
  from lib.utils import get_backend
  
  _PARAMS = ["use_subpixel", "use_icnr_init", "use_convaware_init", "use_reflect_padding"]
  _VALUES = list(product([True, False], repeat=len(_PARAMS)))
  _IDS = ["{}[{}]".format("|".join([_PARAMS[idx] for idx, b in enumerate(v) if b]),
                          get_backend().upper()) for v in _VALUES]
  
  
 
</s> remove from .layers import PixelShuffler, SubPixelUpscaling, ReflectionPadding2D
 </s> add from .layers import PixelShuffler, ReflectionPadding2D </s> remove     """Test routine for a faceswaps neural network blocks.
 </s> add     """Test routine for faceswap neural network blocks. </s> remove def test_blocks(use_subpixel, use_icnr_init, use_convaware_init, use_reflect_padding):
 </s> add def test_blocks(use_icnr_init, use_convaware_init, use_reflect_padding): </s> remove     if get_backend() == "amd" and use_subpixel:
        # Subpixel upscaling does not work on plaidml so skip this test
        pytest.skip("Subpixel upscaling not supported in plaidML")
    cls_ = NNBlocks(use_subpixel=use_subpixel,
                    use_icnr_init=use_icnr_init,
 </s> add     cls_ = NNBlocks(use_icnr_init=use_icnr_init, </s> remove         self.state.config["subpixel_upscaling"] = False
 </s> add 
_PARAMS = ["use_icnr_init", "use_convaware_init", "use_reflect_padding"]
  
  from lib.model.nn_blocks import NNBlocks
  from lib.utils import get_backend
  
_PARAMS = ["use_icnr_init", "use_convaware_init", "use_reflect_padding"]
  _VALUES = list(product([True, False], repeat=len(_PARAMS)))
  _IDS = ["{}[{}]".format("|".join([_PARAMS[idx] for idx, b in enumerate(v) if b]),
                          get_backend().upper()) for v in _VALUES]
  
  
keep keep keep keep replace keep keep keep keep keep
 Remove subpixel upscaling option (#1024) 
tests/lib/model/nn_blocks_test.py