8055210d965130ded71d06ea4cc59c2e82e65b15,models/experimental/mask_rcnn/mask_rcnn_model.py,,_model_fn,#Any#Any#Any#Any#Any#,315

Before Change


    tpu_spec: the TPUEstimatorSpec to run training, evaluation, or prediction.
  
  if mode == tf.estimator.ModeKeys.TRAIN:
    if "features" not in features:
      raise ValueError(""features" is missing in TRAIN input.")
    if "labels" not in features:
      raise ValueError(""labels" is missing in TRAIN input.")
    labels = features["labels"]
    features = features["features"]
  else:
    if params["include_groundtruth_in_features"] and ("labels" in features):
      // In include groundtruth for eval.
      labels = features["labels"]

After Change


  else:
    model_outputs = build_model_graph(
        features, labels, mode == tf.estimator.ModeKeys.TRAIN, params)
    model_outputs.update({
        "source_id": features["source_ids"],
        "image_info": features["image_info"],
    })

  // First check if it is in PREDICT mode.
  if mode == tf.estimator.ModeKeys.PREDICT:
    predictions = {}
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: tensorflow/tpu
Commit Name: 8055210d965130ded71d06ea4cc59c2e82e65b15
Time: 2019-04-09
Author: jysohn@google.com
File Name: models/experimental/mask_rcnn/mask_rcnn_model.py
Class Name:
Method Name: _model_fn


Project Name: mil-tokyo/webdnn
Commit Name: b43dab139aeb1a0895437c0120b911d713f3df86
Time: 2017-04-11
Author: hidaka@mi.t.u-tokyo.ac.jp
File Name: graph-builder/dnn_kernel_builder_webgpu.py
Class Name: KBLinearLayer
Method Name: generate_kernels


Project Name: masa-su/pixyz
Commit Name: a0021cb982c25923a75cd3a1eeaee00058f2cdbb
Time: 2020-07-27
Author: kaneko@weblab.t.u-tokyo.ac.jp
File Name: pixyz/distributions/distributions.py
Class Name: DistGraph
Method Name: sample