60fa2cc0b9c336d86b9dc3887cc73753077b41c4,deepmatcher/models/_utils.py,,sequence_mask,#Any#Any#,11
Before Change
max_len = max_len or lengths.max()
mask = (torch.arange(0, max_len).type_as(lengths).repeat(batch_size, 1).lt(
lengths.unsqueeze(1)))
pdb.set_trace()
return mask
def get_module(cls, op, required=False, op_kwarg=None, **kwargs):
After Change
batch_size = lengths.numel()
max_len = max_len or lengths.max()
return (torch.arange(0, max_len).type_as(lengths).repeat(batch_size, 1).lt(
lengths.unsqueeze(1)))
def get_module(cls, op, required=False, op_kwarg=None, **kwargs):
if op is None and not required or isinstance(op, cls):
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 3
Instances
Project Name: anhaidgroup/deepmatcher
Commit Name: 60fa2cc0b9c336d86b9dc3887cc73753077b41c4
Time: 2018-03-25
Author: sidharthmsk@gmail.com
File Name: deepmatcher/models/_utils.py
Class Name:
Method Name: sequence_mask
Project Name: flow-project/flow
Commit Name: aa44954c842c862bb2f1b757d8e7a16069295e62
Time: 2017-05-04
Author: eugenevinitsky@airbears2-10-142-37-119.airbears2.1918.berkeley.edu
File Name: cistar-dev/cistar/envs/loop_emission.py
Class Name: SimpleEmissionEnvironment
Method Name: compute_reward
Project Name: anhaidgroup/deepmatcher
Commit Name: 60fa2cc0b9c336d86b9dc3887cc73753077b41c4
Time: 2018-03-25
Author: sidharthmsk@gmail.com
File Name: deepmatcher/loss.py
Class Name: SoftNLLLoss
Method Name: forward
Project Name: studioml/studio
Commit Name: fd198d38f36beea1b5e96c1a459b255b7143c313
Time: 2017-11-29
Author: peter.zhokhov@sentient.ai
File Name: studio/auth.py
Class Name: GithubAuth
Method Name: _load_token
Project Name: scikit-multiflow/scikit-multiflow
Commit Name: becc945240a424bc08f74476c46f6a50b69928a5
Time: 2019-04-05
Author: andrecruz97@gmail.com
File Name: src/skmultiflow/meta/additive_expert_ensemble.py
Class Name: AdditiveExpertEnsemble
Method Name: predict_proba
Project Name: rlworkgroup/garage
Commit Name: 78e0a9482dc950338a59089bdf86994034c0f462
Time: 2017-02-06
Author: dementrock@gmail.com
File Name: sandbox/rocky/tf/distributions/categorical.py
Class Name: Categorical
Method Name: sample