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

Method testCloseStack

tensorflow/compiler/tests/stack_ops_test.py:102–109  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

100 self.assertAllClose(out2, 5.0)
101
102 def testCloseStack(self):
103 with self.session() as sess, self.test_scope():
104
105 def fn():
106 h = gen_data_flow_ops.stack_v2(5, dtypes.float32, stack_name="foo")
107 gen_data_flow_ops.stack_close_v2(h)
108
109 sess.run(xla.compile(fn))
110
111 def testPushCloseStack(self):
112 with self.session() as sess, self.test_scope():

Callers

nothing calls this directly

Calls 4

sessionMethod · 0.45
test_scopeMethod · 0.45
runMethod · 0.45
compileMethod · 0.45

Tested by

no test coverage detected