87cafb6ce5cd178e68cfb5fbad1d9e26b6a2fe94,tensorflow_hub/resolver.py,PathResolver,is_supported,#PathResolver#Any#,493
Before Change
def is_supported(self, handle):
try:
return tf_v1.gfile.Exists(handle)
except tf.errors.OpError:
return False
def __call__(self, handle):
After Change
def is_supported(self, handle):
// Path resolver is the last Resolver in the chain so __call__ can always be
// called.
return True
def __call__(self, handle):
if not tf_v1.gfile.Exists(handle):
raise IOError("%s does not exist." % handle)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: tensorflow/hub
Commit Name: 87cafb6ce5cd178e68cfb5fbad1d9e26b6a2fe94
Time: 2020-07-27
Author: no-reply@google.com
File Name: tensorflow_hub/resolver.py
Class Name: PathResolver
Method Name: is_supported
Project Name: tensorflow/hub
Commit Name: ce6da44fb24e74cb9f39130b330957df2c1c8e16
Time: 2020-07-27
Author: no-reply@google.com
File Name: tensorflow_hub/native_module.py
Class Name: Loader
Method Name: is_supported
Project Name: THUNLP-MT/THUMT
Commit Name: 051bd416d3c41002f6d58b9dd71516a27243d178
Time: 2017-11-11
Author: playinf@stu.xmu.edu.cn
File Name: thumt/launcher/translator.py
Class Name:
Method Name: import_params