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

Method testScope

tensorflow/python/kernel_tests/rnn_cell_test.py:343–357  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

341
342 @test_util.run_v1_only("b/124229375")
343 def testScope(self):
344
345 def factory(scope):
346 cell = Plus1RNNCell()
347 batch_size = 2
348 input_size = 5
349 max_length = 8 # unrolled up to this length
350 inputs = max_length * [
351 array_ops.placeholder(dtypes.float32, shape=(batch_size, input_size))
352 ]
353 return rnn.static_rnn(cell, inputs, dtype=dtypes.float32, scope=scope)
354
355 self._testScope(factory, use_outer_scope=True)
356 self._testScope(factory, use_outer_scope=False)
357 self._testScope(factory, prefix=None, use_outer_scope=False)
358
359
360class LSTMTest(test.TestCase):

Callers

nothing calls this directly

Calls 1

_testScopeMethod · 0.95

Tested by

no test coverage detected