You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print(f"Input shape is : {sequence_tensor.shape}")
132
+
print(f"Output shape is : {output.shape}")
133
+
print(f"Hidden shape is : {hidden.shape}")
134
+
135
+
assert (output[-1, :, :hidden_dim] ==hidden[0]).all(), "First hidden_dim of output at last time step must be same as Final Forward Hidden state in case of Single layer bi-directional RNN"
136
+
assert (output[0, :, hidden_dim:] ==hidden[-1]).all(), "Last hidden_dim of output at initial time step must be same as Final Backward Hidden state in case of Single layer bi-directional RNN"
0 commit comments