# Tensorflow 学习笔记¶

## PROBLEMS¶

### Tensor Tensor() is not an element of this graph.¶

I had this problem when doing inference in a different thread than where I loaded my model. Here’s how I fixed the problem:

graph = tf.get_default_graph()

global graph