db0215eeec9ce23e7cc75577828755095c2319d5,python/tvm/relay/frontend/pytorch.py,PyTorchOpConverter,bincount,#PyTorchOpConverter#Any#Any#,1921

Before Change


        maximum = _op.max(data)
        dim = maximum + _expr.const(1, dtype="int32")
        if weights:
            weight_type = _infer_type(weights).checked_type
            out_dtype = weight_type.dtype
            updates = weights
        else:
            out_dtype = "int32"

After Change


    def bincount(self, inputs, input_types):
        data = inputs[0]
        weights = inputs[1]
        input_type = self.infer_type(data).dtype
        if input_type == "int64":
            logging.warning(
                "Casting an int64 input to int32, since we do not have int64 atomic add"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: apache/incubator-tvm
Commit Name: db0215eeec9ce23e7cc75577828755095c2319d5
Time: 2020-12-09
Author: tv.code@beamnet.de
File Name: python/tvm/relay/frontend/pytorch.py
Class Name: PyTorchOpConverter
Method Name: bincount


Project Name: apache/incubator-tvm
Commit Name: db0215eeec9ce23e7cc75577828755095c2319d5
Time: 2020-12-09
Author: tv.code@beamnet.de
File Name: python/tvm/relay/frontend/pytorch.py
Class Name: PyTorchOpConverter
Method Name: slice


Project Name: apache/incubator-tvm
Commit Name: db0215eeec9ce23e7cc75577828755095c2319d5
Time: 2020-12-09
Author: tv.code@beamnet.de
File Name: python/tvm/relay/frontend/pytorch.py
Class Name: PyTorchOpConverter
Method Name: to