b4ce388e7f052bdcd4d49d57d308aa18aadb7322,kur/loss/ctc.py,Ctc,__init__,#Ctc#Any#Any#Any#Any#Any#,127
Before Change
super().__init__(**kwargs)
if variant is None:
self.variant = None
elif variant == "warp":
self.variant = "warp"
if not can_import("ctc"):
logger.error("The warp-CTC loss function was requested, but "
"we cannot find the "ctc" library. See our "
"troubleshooting page for helpful tips.")
raise ImportError("Cannot find the "ctc" library, which is "
"needed when using the "warp" variant of the CTC loss "
"function.")
else:
raise ValueError("Unsupported CTC variant: {}".format(variant))
self.input_length = input_length
self.output_length = output_length
self.output = output
self.relative_to = relative_to
After Change
super().__init__(**kwargs)
if variant not in {None, "warp"}:
raise ValueError("Unsupported CTC variant: {}".format(variant))
self.variant = variant
self.input_length = input_length
self.output_length = output_length
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: deepgram/kur
Commit Name: b4ce388e7f052bdcd4d49d57d308aa18aadb7322
Time: 2017-04-04
Author: ajsyp@syptech.net
File Name: kur/loss/ctc.py
Class Name: Ctc
Method Name: __init__
Project Name: deepmind/dm_control
Commit Name: 1a31a7ab5c356f72c90719e86d82e25f3625500d
Time: 2018-10-10
Author: alimuldal@google.com
File Name: dm_control/render/__init__.py
Class Name:
Method Name:
Project Name: matthewwithanm/django-imagekit
Commit Name: a9895f335a5323b4bee7d6cbcffffbe826645c03
Time: 2011-09-08
Author: matthew@exanimo.com
File Name: imagekit/models.py
Class Name: ImageModelBase
Method Name: __init__