855d29dba61a53553e8fc89237773368fd7e9cdf,research/object_detection/dataset_tools/context_rcnn/generate_embedding_data.py,GenerateEmbeddingDataFn,_run_inference_and_generate_embedding,#GenerateEmbeddingDataFn#Any#,123

Before Change


    example.features.feature["image/unix_time"].float_list.value.extend(
        [unix_time])

    (detection_features, detection_boxes, num_detections,
     detection_scores) = self._session.run(
         [
             self._embedding_node, self._box_node, self._num_detections[0],
             self._scores_node
         ],
         feed_dict={self._input: [tfrecord_entry]})

    num_detections = int(num_detections)
    embed_all = []
    score_all = []

After Change


        [unix_time])

    detections = self._detect_fn.signatures["serving_default"](
        (tf.expand_dims(tf.convert_to_tensor(tfrecord_entry), 0)))
    detection_features = detections["detection_features"]
    detection_boxes = detections["detection_boxes"]
    num_detections = detections["num_detections"]
    detection_scores = detections["detection_scores"]

    num_detections = int(num_detections)
    embed_all = []
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: tensorflow/models
Commit Name: 855d29dba61a53553e8fc89237773368fd7e9cdf
Time: 2020-07-29
Author: sbeery@google.com
File Name: research/object_detection/dataset_tools/context_rcnn/generate_embedding_data.py
Class Name: GenerateEmbeddingDataFn
Method Name: _run_inference_and_generate_embedding


Project Name: deepmind/sonnet
Commit Name: f7c759ca562303127a9991574d5a985d4dff99e8
Time: 2018-07-17
Author: tomhennigan@google.com
File Name: sonnet/python/modules/basic_rnn_test.py
Class Name: VanillaRNNTest
Method Name: testComputation


Project Name: tensorflow/models
Commit Name: 855d29dba61a53553e8fc89237773368fd7e9cdf
Time: 2020-07-29
Author: sbeery@google.com
File Name: research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py
Class Name: GenerateDetectionDataFn
Method Name: _run_inference_and_generate_detections