f06816fbdd0f3d6e4fdfb8fbe79a43035c8146e1,thinc/layers/chain.py,,chain,#,108
Before Change
*etc: Model
) -> Model:
if l3 is None:
return cast(Model[InT, Mid2T], chains(l1, l2))
elif l4 is None:
return cast(Model[InT, Mid3T], chains(l1, l2, l3))
elif l5 is None:
return cast(Model[InT, Mid4T], chains(l1, l2, l3, l4))
elif l6 is None:
return cast(Model[InT, Mid5T], chains(l1, l2, l3, l4, l5))
elif l7 is None:
return cast(Model[InT, Mid6T], chains(l1, l2, l3, l4, l5, l6))
After Change
*etc: Model
) -> Model[InT, Any]:
if l3 is None:
return chains(l1, l2)
elif l4 is None:
return chains(l1, l2, l3)
elif l5 is None:
return chains(l1, l2, l3, l4)
elif l6 is None:
return chains(l1, l2, l3, l4, l5)
elif l7 is None:
return chains(l1, l2, l3, l4, l5, l6)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 10
Instances
Project Name: explosion/thinc
Commit Name: f06816fbdd0f3d6e4fdfb8fbe79a43035c8146e1
Time: 2020-01-10
Author: honnibal+gh@gmail.com
File Name: thinc/layers/chain.py
Class Name:
Method Name: chain
Project Name: explosion/thinc
Commit Name: f06816fbdd0f3d6e4fdfb8fbe79a43035c8146e1
Time: 2020-01-10
Author: honnibal+gh@gmail.com
File Name: thinc/layers/chain.py
Class Name:
Method Name: chain