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

Function TEST

tensorflow/contrib/session_bundle/session_bundle_test.cc:177–182  ·  view source on GitHub ↗

Test for resource leaks when loading and unloading large numbers of SessionBundles. Concurrent with adding this test, we had a leak where the TensorFlow Session was not being closed, which leaked memory. TODO(b/31711147): Increase the SessionBundle ResourceLeakTest iterations and move outside of the test suite; decrease test size back to small at the same time.

Source from the content-addressed store, hash-verified

175// move outside of the test suite; decrease test size back to small at the same
176// time.
177TEST(LoadSessionBundleFromPath, ResourceLeakTest) {
178 const string export_path = test_util::TestSrcDirPath(kExportPath);
179 for (int i = 0; i < 100; i++) {
180 BasicTest(export_path);
181 }
182}
183
184TEST(LoadSessionBundleFromPath, BasicTensorFlowContrib) {
185 const string export_path = test_util::TestSrcDirPath(kExportPath);

Callers

nothing calls this directly

Calls 10

TestSrcDirPathFunction · 0.85
BasicTestFunction · 0.85
CheckSessionBundleFunction · 0.85
StrContainsFunction · 0.50
okMethod · 0.45
ToStringMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected