00135a70697dc9b4611971e5833e2d84501c3da7,keras/engine/training.py,Model,evaluate,#Model#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,1281
Before Change
for name in self.metrics_names:
if name in logs:
results.append(logs[name])
for key in sorted(logs.keys()):
if key not in self.metrics_names:
results.append(logs[key])
if len(results) == 1:
return results[0]
return results
After Change
self._assert_compile_was_called()
self._check_call_args("evaluate")
_disallow_inside_tf_function("evaluate")
use_cached_eval_dataset = kwargs.pop("_use_cached_eval_dataset", False)
if kwargs:
raise TypeError("Invalid keyword arguments: %s" % (kwargs,))
if self.distribute_strategy._should_use_with_coordinator: // pylint: disable=protected-access
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: keras-team/keras
Commit Name: 00135a70697dc9b4611971e5833e2d84501c3da7
Time: 2021-03-23
Author: scottzhu@google.com
File Name: keras/engine/training.py
Class Name: Model
Method Name: evaluate
Project Name: neuroailab/tnn
Commit Name: 0f02b958d6bb792d10b7735c02528e9bc1443c73
Time: 2019-07-02
Author: anayebi@stanford.edu
File Name: tnn/cell.py
Class Name: GenFuncCell
Method Name: __call__
Project Name: andresriancho/w3af
Commit Name: 2ded693c959c91dc3e4daca276460d6c64ada479
Time: 2019-12-16
Author: andres.riancho@gmail.com
File Name: w3af/core/data/db/cached_disk_dict.py
Class Name: CachedDiskDict
Method Name: _move_key_to_disk_if_needed