d1e6e624ef891543c5bba32bb0a696d350714693,coremltools/converters/nnssa/coreml/ssa_converter.py,SSAConverter,_convert_pad,#SSAConverter#Any#,1330

Before Change


        input_names = self._get_input_tensors(node)
        constant_value = 0
        if len(node.inputs) == 3:
            constant_value = self._get_current_graph()[input_names[2]].value.val
        // this layer takes at most 2 inputs
        input_names = input_names[:2]
        layer = self._get_builder().add_constant_pad(

After Change


        if len(node.inputs) == 3:
            constant_value = input_nodes[2].value.val
            if constant_value == -np.inf:
                INT_MIN = - np.iinfo(np.int64).max - 1
                constant_value = np.float(INT_MIN)

            if constant_value == np.inf:
                INT_MAX = np.iinfo(np.int64).max
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: apple/coremltools
Commit Name: d1e6e624ef891543c5bba32bb0a696d350714693
Time: 2019-08-20
Author: smq@apple.com
File Name: coremltools/converters/nnssa/coreml/ssa_converter.py
Class Name: SSAConverter
Method Name: _convert_pad


Project Name: apple/coremltools
Commit Name: d1e6e624ef891543c5bba32bb0a696d350714693
Time: 2019-08-20
Author: smq@apple.com
File Name: coremltools/converters/nnssa/coreml/ssa_converter.py
Class Name: SSAConverter
Method Name: _convert_pad


Project Name: scikit-learn/scikit-learn
Commit Name: a68ba97309512f691feb25e6a07af7561fc56e3b
Time: 2019-12-20
Author: g.lemaitre58@gmail.com
File Name: sklearn/inspection/_permutation_importance.py
Class Name:
Method Name: permutation_importance


Project Name: nilearn/nilearn
Commit Name: 35c1805993c33e67a394193c7cae9a3f38a7607f
Time: 2014-11-21
Author: danilobzdok@gmail.com
File Name: nilearn/decomposition/canica.py
Class Name: CanICA
Method Name: fit