title: How can I know the output and input tensor names in a saved model
body: <p>I know how to load a saved TensorFlow model but how will I know the input and output tensor names.</p>
  
  <p>I can load a protobuf file using tf.import_graph_def and then load the tensors using function get_tensor_by_name but how will I know the tensor names of any pre-trained model. Do I need to check their documentation or is there any other way.</p>