eb737460e317877af263183245ebac792c02aa20,keras_retinanet/layers/_misc.py,NonMaximumSuppression,call,#NonMaximumSuppression#Any#,121
Before Change
def call(self, inputs, **kwargs):
boxes, classification, detections = inputs
boxes = keras.backend.reshape(boxes, (-1, 4))
classification = keras.backend.reshape(classification, (-1, self.num_classes))
scores = keras.backend.max(classification, axis=1)
labels = keras.backend.argmax(classification, axis=1)
After Change
boxes, classification, detections = inputs
// TODO: support batch size > 1.
boxes = boxes[0]
classification = classification[0]
detections = detections[0]
scores = keras.backend.max(classification, axis=1)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: fizyr/keras-retinanet
Commit Name: eb737460e317877af263183245ebac792c02aa20
Time: 2017-10-23
Author: hansg91@gmail.com
File Name: keras_retinanet/layers/_misc.py
Class Name: NonMaximumSuppression
Method Name: call
Project Name: danielegrattarola/keras-gat
Commit Name: 9d56361641a64ff73ac630812ecd4964eedbc7aa
Time: 2017-11-09
Author: daniele.grattarola@gmail.com
File Name: gat/graph_attention_layer.py
Class Name: GraphAttention
Method Name: call
Project Name: GPflow/GPflow
Commit Name: f746253f6d61780397e0aebd997f0f1b5db17ed6
Time: 2018-07-17
Author: dutordoirv@gmail.com
File Name: gpflow/quadrature.py
Class Name:
Method Name: ndiag_mc