371c4893f7d404fc0f9d5dd38dfab6c4ef568b43,hls-writer/hls_model.py,Layer,__init__,#Layer#Any#Any#Any#Any#Any#,335

Before Change


        if self.model.config.get_strategy(self).lower() == "resource":
            self._function_template = get_function_template("Large" + self.__class__.__name__)
            if self.model.config.get_reuse_factor(self) == 1:
                print("WARNING: Using ReuseFactor 1 with "Resource" strategy. This may not work.")
        if self._function_template is None:
            self._function_template = get_function_template(self.__class__.__name__)

        self._config_template = get_config_template(self.__class__.__name__)

After Change


        self.weights = OrderedDict()
        self.variables = OrderedDict()
        self.precision = OrderedDict()
        accum_t = HLSType(*reversed(self.model.config.get_precision(self, "accum")))
        self.precision[accum_t.name] = accum_t
        self.set_attr("accum_t", accum_t.precision)

        self.initialize()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: hls-fpga-machine-learning/hls4ml
Commit Name: 371c4893f7d404fc0f9d5dd38dfab6c4ef568b43
Time: 2019-08-23
Author: vloncar@users.noreply.github.com
File Name: hls-writer/hls_model.py
Class Name: Layer
Method Name: __init__


Project Name: AlexEMG/DeepLabCut
Commit Name: 857cb1f38abfc3f467b6a8e53ae54365e05fcff2
Time: 2019-02-23
Author: amathis@fas.harvard.edu
File Name: deeplabcut/generate_training_dataset/labeling_toolbox.py
Class Name: MainFrame
Method Name: browseDir


Project Name: HyperGAN/HyperGAN
Commit Name: 7a65d9993bdda4a5248f6aa313abf687faa031a6
Time: 2020-06-27
Author: martyn@255bits.com
File Name: hypergan/configurable_component.py
Class Name: ConfigurableComponent
Method Name: layer_linear