9cc2c91177a6456dea602a93b77864b0a7952333,chainercv/links/model/pickable_sequential_chain.py,PickableSequentialChain,pick,#PickableSequentialChain#,91
Before Change
try:
invalid_name = next(iter(filter(
lambda n: n not in self.layer_names, pick)))
raise ValueError("Invalid layer name ({:s})".format(invalid_name))
except StopIteration:
pass
self._return_tuple = return_tuple
After Change
return_tuple = False
pick = (pick,)
for name in pick:
if name not in self.layer_names:
raise ValueError("Invalid layer name ({:s})".format(name))
self._return_tuple = return_tuple
self._pick = tuple(pick)
def remove_unused(self):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: chainer/chainercv
Commit Name: 9cc2c91177a6456dea602a93b77864b0a7952333
Time: 2019-02-24
Author: ktns.87@gmail.com
File Name: chainercv/links/model/pickable_sequential_chain.py
Class Name: PickableSequentialChain
Method Name: pick
Project Name: pgmpy/pgmpy
Commit Name: 7f5a477d519c9bcd4ccc5ddffcc020eaf76826ef
Time: 2014-01-01
Author: ankurankan@gmail.com
File Name: src/BayesianModel/BayesianModel.py
Class Name: BayesianModel
Method Name: _check_graph
Project Name: explosion/spaCy
Commit Name: 85f2b04c4583160da5b254d45d97a9b5fbd099d1
Time: 2019-10-30
Author: ines@ines.io
File Name: spacy/analysis.py
Class Name:
Method Name: validate_attrs