c909a6a2ecb1f61a268c9566e08607014c6dd773,hls4ml/model/hls_layers.py,Dot,initialize,#Dot#,794

Before Change


        inp1 = self.get_input_variable(self.inputs[0])
        inp2 = self.get_input_variable(self.inputs[1])

        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)

After Change


        inp1 = self.get_input_variable(self.inputs[0])
        inp2 = self.get_input_variable(self.inputs[1])
        assert(inp1.shape == inp2.shape)
        if len(inp1.shape) > 1:
            raise Exception("ERROR: Dot of tensors with rank > 1 is not yet supported.")

        self.add_output_variable(shape=[1], dim_names=["OUT_DOT_{}".format(self.index)])

    def config_cpp(self):
        params = self._default_config_params()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: hls-fpga-machine-learning/hls4ml
Commit Name: c909a6a2ecb1f61a268c9566e08607014c6dd773
Time: 2020-11-24
Author: vloncar@users.noreply.github.com
File Name: hls4ml/model/hls_layers.py
Class Name: Dot
Method Name: initialize


Project Name: tensorflow/datasets
Commit Name: 7b270c7526d74355fcf27496ac8ee5878aaa1683
Time: 2018-12-11
Author: rsepassi@google.com
File Name: tensorflow_datasets/scripts/document_datasets.py
Class Name:
Method Name: make_statistics_information


Project Name: home-assistant/home-assistant
Commit Name: c2828bac2c8aba4f4a710a0001a0412c054e8634
Time: 2017-07-25
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/shopping_list.py
Class Name: ListTopItemsIntent
Method Name: async_handle