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

Method Loop

tensorflow/python/framework/function_test.py:1516–1522  ·  view source on GitHub ↗
(cell, w, i)

Source from the content-addressed store, hash-verified

1514 def _BuildForward(self, weights, inp, mode="cell"):
1515
1516 def Loop(cell, w, i):
1517 x = array_ops.unstack(i, self.NUM_UNROLL)
1518 m = array_ops.zeros_like(x[0])
1519 c = array_ops.zeros_like(x[0])
1520 for i in range(self.NUM_UNROLL):
1521 m, c = cell(x[i], m, c, w)
1522 return m
1523
1524 cell = UnrollLSTMTest.LSTMCell
1525 if mode == "complete":

Callers 1

_select_training_loopMethod · 0.80

Calls 2

rangeFunction · 0.50
unstackMethod · 0.45

Tested by

no test coverage detected