537e5b549a9c4eeb3fe2776028b553ef36fadd88,rnns/fastrnns/factory.py,,lstm_creator,#Any#,27
Before Change
def lstm_creator(script=True, **kwargs):
input, hidden, params, _ = lstm_inputs(return_module=False, **kwargs)
inputs = [input, hidden] + params[0]
return lstm_factory(lstm_cell, script), inputs, flatten_list(params)
def lstm_premul_creator(script=True, **kwargs):
input, hidden, params, _ = lstm_inputs(return_module=False, **kwargs)
After Change
def lstm_creator(script=True, **kwargs):
input, hidden, params, _ = lstm_inputs(return_module=False, **kwargs)
inputs = [input, hidden] + params[0]
return ModelDef(
inputs=inputs,
params=flatten_list(params),
forward=lstm_factory(lstm_cell, script),
backward_setup=lstm_backward_setup,
backward=simple_backward)
def lstm_premul_creator(script=True, **kwargs):
input, hidden, params, _ = lstm_inputs(return_module=False, **kwargs)
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 6
Instances
Project Name: pytorch/benchmark
Commit Name: 537e5b549a9c4eeb3fe2776028b553ef36fadd88
Time: 2018-12-27
Author: zou3519@gmail.com
File Name: rnns/fastrnns/factory.py
Class Name:
Method Name: lstm_creator
Project Name: pytorch/benchmark
Commit Name: 537e5b549a9c4eeb3fe2776028b553ef36fadd88
Time: 2018-12-27
Author: zou3519@gmail.com
File Name: rnns/fastrnns/factory.py
Class Name:
Method Name: lstm_multilayer_creator
Project Name: pytorch/benchmark
Commit Name: 537e5b549a9c4eeb3fe2776028b553ef36fadd88
Time: 2018-12-27
Author: zou3519@gmail.com
File Name: rnns/fastrnns/factory.py
Class Name:
Method Name: lstm_simple_creator
Project Name: pytorch/benchmark
Commit Name: 537e5b549a9c4eeb3fe2776028b553ef36fadd88
Time: 2018-12-27
Author: zou3519@gmail.com
File Name: rnns/fastrnns/factory.py
Class Name:
Method Name: pytorch_lstm_creator
Project Name: pytorch/benchmark
Commit Name: 537e5b549a9c4eeb3fe2776028b553ef36fadd88
Time: 2018-12-27
Author: zou3519@gmail.com
File Name: rnns/fastrnns/factory.py
Class Name:
Method Name: lstm_premul_creator