6b7b82ff60b8ca7a26b50e50210a06a46bdc848a,lib/prosr/models/generators.py,ProSR,forward,#ProSR#Any#Any#Any#Any#,131

Before Change


    except AttributeError:
      max_scale_idx = len(self.opt.scale) - 1

    if scale is None:
      scale = self.opt.scale[max_scale_idx]

    feats = self.get_init_conv(scale)(x)
    output = []
    for s in range(1, int(log2(scale))+1):
      if self.opt.residual_denseblock:

After Change


    if upscale_factor is None:
      upscale_factor = self.max_scale
    else:
      valid_upscale_factors = [2**(i+1) for i in range(self.n_denseblocks)]
      if not (1 < upscale_factor <= self.max_scale and upscale_factor % 2 == 0):
        error("Invalid upscaling factor: choose one of: {}".format(
          valid_upscale_factors))
        raise SystemExit(1)

    feats = self.get_init_conv(log2(upscale_factor))(x)
    output = []
    for s in range(1, int(log2(upscale_factor))+1):
      if self.residual_denseblock:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: fperazzi/proSR
Commit Name: 6b7b82ff60b8ca7a26b50e50210a06a46bdc848a
Time: 2018-07-09
Author: fperazzi@adobe.com
File Name: lib/prosr/models/generators.py
Class Name: ProSR
Method Name: forward


Project Name: pyinstaller/pyinstaller
Commit Name: deb64d5510f1e10fbe21edb511eb3ec698d95bf0
Time: 2015-07-30
Author: h.goebel@crazy-compilers.com
File Name: tests/old_suite/import/test_onefile_c_extension.py
Class Name:
Method Name:


Project Name: pyinstaller/pyinstaller
Commit Name: deb64d5510f1e10fbe21edb511eb3ec698d95bf0
Time: 2015-07-30
Author: h.goebel@crazy-compilers.com
File Name: tests/old_suite/import/test_c_extension.py
Class Name:
Method Name: