e93afea875a544bd4b887b9f093985dd4d23ec1e,official/nlp/tasks/tagging.py,,predict,#Any#Any#Any#,219
Before Change
dataset = orbit.utils.make_distributed_dataset(tf.distribute.get_strategy(),
task.build_inputs, params)
// Set `num_steps` to -1 to exhaust the dataset.
predict_ids, sentence_ids = loop_fn(
iter(dataset), num_steps=-1, state=([], []), reduce_fn=reduce_fn)
return predict_ids, sentence_ids
After Change
dataset = orbit.utils.make_distributed_dataset(tf.distribute.get_strategy(),
task.build_inputs, params)
outputs = utils.predict(predict_step, aggregate_fn, dataset)
return outputs["predict_ids"], outputs["sentence_ids"]
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 10
Instances
Project Name: tensorflow/models
Commit Name: e93afea875a544bd4b887b9f093985dd4d23ec1e
Time: 2020-08-03
Author: chendouble@google.com
File Name: official/nlp/tasks/tagging.py
Class Name:
Method Name: predict
Project Name: tensorflow/models
Commit Name: 4728eb68276af34969210e2054971e00f3fe7352
Time: 2020-08-03
Author: chendouble@google.com
File Name: official/nlp/tasks/tagging.py
Class Name:
Method Name: predict
Project Name: tensorflow/models
Commit Name: 4728eb68276af34969210e2054971e00f3fe7352
Time: 2020-08-03
Author: chendouble@google.com
File Name: official/nlp/tasks/sentence_prediction.py
Class Name:
Method Name: predict
Project Name: tensorflow/models
Commit Name: e93afea875a544bd4b887b9f093985dd4d23ec1e
Time: 2020-08-03
Author: chendouble@google.com
File Name: official/nlp/tasks/sentence_prediction.py
Class Name:
Method Name: predict