Commit 384312df authored by Nick Felt's avatar Nick Felt Committed by TensorFlower Gardener
Browse files

Fix summary writer resource refcounting memory/open-file leak

A missing unref meant that tf.contrib.summary.create_file_writer() resources would not actually be destroyed after they go out of scope, and the underlying event file would also remain open. This change fixes the bug and adds tests that closing and unref'ing the SummaryWriter will ensure the resource is destroyed and its open file is closed.

PiperOrigin-RevId: 234900531
parent 7ad52b94
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment