Improve graph and session handling in facenet class

2 jobs for <span class="ref-name">facenet</span> in 28 minutes and 10 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Build
passed #166410
docker
build_linux_36

00:28:10

passed #166411
macosx
build_macosx_36

00:10:08