public void reset_context() { ops.reset_uid(); ops.reset_default_graph(); context_switches.Clear(); if (_handle != null) { c_api.TFE_ContextClearCaches(_handle); } }
public void reset_context() { // ops.reset_uid(); // tf.defaultSession = null; ops.reset_default_graph(); context_switches.Clear(); tf.Context.ensure_initialized(); if (_handle != null) { c_api.TFE_ContextClearCaches(_handle); } }