73844a5b82ca5a3dd9837a3fbed434b06af360bd,thinc/layers/lstm.py,,forward,#Any#Any#Any#,83
Before Change
def forward(
model: Model[RNNState, RNNState], prevstate_inputs: RNNState, is_train: bool
) -> Tuple[RNNState, Callable]:
( cell_tm1, hidden_tm1), inputs = prevstate_inputs
weights = model.layers[0]
W = weights.get_param("W")
b = weights.get_param("b")
After Change
W = model.get_param("W")
b = model.get_param("b")
h = model.get_param("h")
c = model.get_param("c")
// Initialize hiddens and cells
hiddens = model.ops.alloc_f2d(X.shape[1], h.shape[0])
cells = model.ops.alloc_f2d(X.shape[1], c.shape[0])
hiddens += h
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: explosion/thinc
Commit Name: 73844a5b82ca5a3dd9837a3fbed434b06af360bd
Time: 2020-01-18
Author: honnibal+gh@gmail.com
File Name: thinc/layers/lstm.py
Class Name:
Method Name: forward
Project Name: explosion/thinc
Commit Name: f2754e0656d8cebe1f785f6af100e4ade241a7f8
Time: 2020-01-14
Author: honnibal+gh@gmail.com
File Name: thinc/model.py
Class Name: Model
Method Name: get_gradients
Project Name: explosion/thinc
Commit Name: 019fa4d7f8216b9a906db49b64e02f9be08c3826
Time: 2019-12-25
Author: honnibal+gh@gmail.com
File Name: thinc/describe.py
Class Name: Weights
Method Name: __get__