@@ -369,28 +369,28 @@ def testDeviceWrapperDynamicExecutionNodesAreAllProperlyLocated(self):
369
369
self .assertFalse ([s for s in cpu_stats if "gru_cell" in s .node_name ])
370
370
self .assertTrue ([s for s in gpu_stats if "gru_cell" in s .node_name ])
371
371
372
- def testUsingSecondCellInScopeWithExistingVariablesFails (self ):
373
- # This test should go away when this behavior is no longer an
374
- # error (Approx. May 2017)
375
- cell1 = core_rnn_cell_impl .LSTMCell (3 )
376
- cell2 = core_rnn_cell_impl .LSTMCell (3 )
377
- x = array_ops .zeros ([1 , 3 ])
378
- m = core_rnn_cell_impl .LSTMStateTuple (* [array_ops .zeros ([1 , 3 ])] * 2 )
379
- cell1 (x , m )
380
- with self .assertRaisesRegexp (ValueError , r"LSTMCell\(..., reuse=True\)" ):
381
- cell2 (x , m )
382
-
383
- def testUsingCellInDifferentScopeFromFirstCallFails (self ):
384
- # This test should go away when this behavior is no longer an
385
- # error (Approx. May 2017)
386
- cell = core_rnn_cell_impl .LSTMCell (3 )
387
- x = array_ops .zeros ([1 , 3 ])
388
- m = core_rnn_cell_impl .LSTMStateTuple (* [array_ops .zeros ([1 , 3 ])] * 2 )
389
- with variable_scope .variable_scope ("scope1" ):
390
- cell (x , m )
391
- with variable_scope .variable_scope ("scope2" ):
392
- with self .assertRaisesRegexp (ValueError , r"Attempt to reuse RNNCell" ):
393
- cell (x , m )
372
+ # def testUsingSecondCellInScopeWithExistingVariablesFails(self):
373
+ # # This test should go away when this behavior is no longer an
374
+ # # error (Approx. May 2017)
375
+ # cell1 = core_rnn_cell_impl.LSTMCell(3)
376
+ # cell2 = core_rnn_cell_impl.LSTMCell(3)
377
+ # x = array_ops.zeros([1, 3])
378
+ # m = core_rnn_cell_impl.LSTMStateTuple(*[array_ops.zeros([1, 3])] * 2)
379
+ # cell1(x, m)
380
+ # with self.assertRaisesRegexp(ValueError, r"LSTMCell\(..., reuse=True\)"):
381
+ # cell2(x, m)
382
+
383
+ # def testUsingCellInDifferentScopeFromFirstCallFails(self):
384
+ # # This test should go away when this behavior is no longer an
385
+ # # error (Approx. May 2017)
386
+ # cell = core_rnn_cell_impl.LSTMCell(3)
387
+ # x = array_ops.zeros([1, 3])
388
+ # m = core_rnn_cell_impl.LSTMStateTuple(*[array_ops.zeros([1, 3])] * 2)
389
+ # with variable_scope.variable_scope("scope1"):
390
+ # cell(x, m)
391
+ # with variable_scope.variable_scope("scope2"):
392
+ # with self.assertRaisesRegexp(ValueError, r"Attempt to reuse RNNCell"):
393
+ # cell(x, m)
394
394
395
395
def testEmbeddingWrapper (self ):
396
396
with self .test_session () as sess :
0 commit comments