title: How do I mix Non-Tensorflow code with Tensorflow ops?
body: <p>I am trying to use a third party library (neural renderer) in my code alongside Tensorflow. This library has a function which I would like to run between Tensorflow executions. However, whenever I feed a placeholder into the function, it just gives me this problem:</p>
  
  <pre><code>AttributeError: 'Tensor' object has no attribute 'transpose'
  </code></pre>
  
  <p>How do I combine a Tensorflow session and a non-Tensorflow function? For example, how do I do something like this:</p>
  
  <pre><code>input = not_tensorflow(foo, bar)
  op1 = tf.assign(var, input)
  sess.run(op1, feed_dict={foo:stuff})
  </code></pre>
  
  <p>I thought I would make foo a simple Placeholder, but apparently that doesn't work.</p>