title: How to extract a value from a tensor as int in tensorflow?
body: <p>This question is with respect to accessing individual elements in a tensor, say [1,2,3]. I need to access the inner element [1]. Since I am calling another api library which is not from tensorflow. This api needs an int value as an argument.I am having problems putting [1] into that api as [1] is shown as a tensor, instead of an int. Is there a way to convert a single tensor like [1] into an int 1?</p>