61613b27b92aef20d87c881cfc7451e2b942df00,python/baseline/remote.py,RemoteModelTensorFlowREST,deserialize_response,#RemoteModelTensorFlowREST#Any#Any#,60

Before Change


            classes = predict_response["classes"]
            lengths = examples[self.lengths_key]
            result = []
            num_ex = examples[self.lengths_key].shape[0]
            for i in range(num_ex):
                length_i = lengths[i]
                classes_i = classes[i]
                d = [np.array(classes_i[j]) for j in range(length_i)]

After Change


                if self.return_labels:
                    d = [(c, np.float32(s)) for c, s in zip(classes_i, score_i)]
                else:
                    d = [(np.int32(c), np.float32(s)) for c, s in zip(classes_i, score_i)]
                result.append(d)
            return result
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: dpressel/mead-baseline
Commit Name: 61613b27b92aef20d87c881cfc7451e2b942df00
Time: 2019-03-07
Author: sagnik1987@gmail.com
File Name: python/baseline/remote.py
Class Name: RemoteModelTensorFlowREST
Method Name: deserialize_response


Project Name: dpressel/mead-baseline
Commit Name: bfddcc3d4b2a4f8c977c5cb1eca2a9589357062d
Time: 2019-02-05
Author: sagnik1987@gmail.com
File Name: python/baseline/remote.py
Class Name: RemoteModelTensorFlowGRPC
Method Name: deserialize_response


Project Name: nerox8664/pytorch2keras
Commit Name: 9ca22d88cb1c29994fc8d8ee915407602c0a0168
Time: 2018-05-31
Author: nerox8664@gmail.com
File Name: pytorch2keras/layers.py
Class Name:
Method Name: convert_constant