MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _lstm_block

Method _lstm_block

tensorflow/python/ops/rnn_grad_test.py:69–82  ·  view source on GitHub ↗
(self, op, w, b, x, cs_prev, h_prev)

Source from the content-addressed store, hash-verified

67 self.assertAllEqual(b_grad, b_ifco_grad)
68
69 def _lstm_block(self, op, w, b, x, cs_prev, h_prev):
70 w_peephole = array_ops.zeros(cs_prev.shape[1:], dtype=w.dtype)
71 _, all_cs, _, _, _, _, all_h = op(
72 seq_len_max=math_ops.cast(array_ops.shape(x)[0], dtypes.int64),
73 x=x,
74 cs_prev=cs_prev,
75 h_prev=h_prev,
76 w=w,
77 wci=w_peephole,
78 wcf=w_peephole,
79 wco=w_peephole,
80 b=b,
81 use_peephole=False)
82 return all_cs, all_h
83
84
85def deterministic_random_uniform(shape):

Callers 1

Calls 3

opFunction · 0.70
castMethod · 0.45
shapeMethod · 0.45

Tested by

no test coverage detected