Spaces:
Runtime error
Runtime error
Update CALTextModel.py
Browse files- CALTextModel.py +1 -1
CALTextModel.py
CHANGED
@@ -600,7 +600,7 @@ def get_sample(ctx0, h_0, k , maxlen, stochastic, training, model):
|
|
600 |
break
|
601 |
if dead_k >= k:
|
602 |
break
|
603 |
-
|
604 |
next_w = np.array([w1[-1] for w1 in hyp_samples])
|
605 |
next_state = np.array(hyp_states)
|
606 |
next_alpha_past = np.array(hyp_alpha_past)
|
|
|
600 |
break
|
601 |
if dead_k >= k:
|
602 |
break
|
603 |
+
|
604 |
next_w = np.array([w1[-1] for w1 in hyp_samples])
|
605 |
next_state = np.array(hyp_states)
|
606 |
next_alpha_past = np.array(hyp_alpha_past)
|