c683f4b1b06a2108249820888516b333313e0569,python/src/nnabla/utils/converter/onnx/importer.py,OnnxImporter,Tile,#OnnxImporter#Any#Any#,1697

Before Change


        output_shape = []
        for init in self._graph.initializer:
            if init.name == repeats:
                if init.data_type != TensorProto.INT64:
                    raise ValueError(
                        "Only INT64 is supported for {} in {} op_type".format(repeats, n.op_type))
                if init.raw_data:
                    tp.reps.extend(np.fromstring(
                        init.raw_data, dtype=np.int64))
                elif init.int64_data:
                    tp.reps.extend(init.int64_data)
        self._merged_inputs.append(repeats)
        del func.input[1]

After Change


        input_shape = self.get_func_input_shape(func.input[0])
        output_shape = []
        raw_data = self.get_input_raw_data(repeats)
        if raw_data:
            tp.reps.extend(raw_data)
        else:
            raise ValueError("Not found repeats")
        self._merged_inputs.append(repeats)
        del func.input[1]
        if len(tp.reps) > len(input_shape):
            s = len(tp.reps) - len(input_shape)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: sony/nnabla
Commit Name: c683f4b1b06a2108249820888516b333313e0569
Time: 2019-08-07
Author: Yuchi.Wen@sony.com
File Name: python/src/nnabla/utils/converter/onnx/importer.py
Class Name: OnnxImporter
Method Name: Tile


Project Name: sony/nnabla
Commit Name: c683f4b1b06a2108249820888516b333313e0569
Time: 2019-08-07
Author: Yuchi.Wen@sony.com
File Name: python/src/nnabla/utils/converter/onnx/importer.py
Class Name: OnnxImporter
Method Name: Reshape


Project Name: tensorflow/benchmarks
Commit Name: ecec43ee2dd7d21a08d68d00c668ea54bde03672
Time: 2018-10-08
Author: reedwm@google.com
File Name: scripts/tf_cnn_benchmarks/benchmark_cnn.py
Class Name: BenchmarkCNN
Method Name: _run_eval