72ddc9de29a7987330720927d82a7769f3a82c5c,opennmt/runner.py,Runner,infer,#Runner#Any#Any#Any#Any#,300
Before Change
log_time: If ``True``, several time metrics will be printed in the logs at
the end of the inference loop.
checkpoint , config = self._init_run()
checkpoint.restore(checkpoint_path=checkpoint_path, weights_only=True)
model = checkpoint.model
infer_config = config["infer"]
dataset = model.examples_inputter.make_inference_dataset(
features_file,
infer_config["batch_size"],
After Change
log_time: If ``True``, several time metrics will be printed in the logs at
the end of the inference loop.
config = self._finalize_config()
model = self._init_model(config)
checkpoint = checkpoint_util.Checkpoint.from_config(config, model)
checkpoint.restore(checkpoint_path=checkpoint_path, weights_only=True)
infer_config = config["infer"]
dataset = model.examples_inputter.make_inference_dataset(
features_file,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances Project Name: OpenNMT/OpenNMT-tf
Commit Name: 72ddc9de29a7987330720927d82a7769f3a82c5c
Time: 2020-03-30
Author: guillaumekln@users.noreply.github.com
File Name: opennmt/runner.py
Class Name: Runner
Method Name: infer
Project Name: OpenNMT/OpenNMT-tf
Commit Name: 72ddc9de29a7987330720927d82a7769f3a82c5c
Time: 2020-03-30
Author: guillaumekln@users.noreply.github.com
File Name: opennmt/runner.py
Class Name: Runner
Method Name: infer
Project Name: OpenNMT/OpenNMT-tf
Commit Name: 72ddc9de29a7987330720927d82a7769f3a82c5c
Time: 2020-03-30
Author: guillaumekln@users.noreply.github.com
File Name: opennmt/runner.py
Class Name: Runner
Method Name: score
Project Name: OpenNMT/OpenNMT-tf
Commit Name: 72ddc9de29a7987330720927d82a7769f3a82c5c
Time: 2020-03-30
Author: guillaumekln@users.noreply.github.com
File Name: opennmt/runner.py
Class Name: Runner
Method Name: evaluate