Fix use-after-free in Graph::to_function
Fix use-after-free in Graph::to_function

adamcrume/tensorflow-rust,tensorflow/rust,adamcrume/tensorflow-rust,tensorflow/rust,adamcrume/tensorflow-rust,adamcrume/tensorflow-rust,tensorflow/rust,tensorflow/rust