title: How to run Tensorflow clustering algorithm model
body: <p>I need to run k-means algorithm from Tensorflow in Go, i.e. cluster a graph intro subgraphs according to nodes similarity matrix.</p>
  
  <p>I came across <a href="https://www.tonytruong.net/running-a-keras-tensorflow-model-in-golang/" rel="nofollow noreferrer">this article</a> which shows an example on how to run a Keras  trained model in Go. In this example the algo is of a supervised learning type. However in clustering algos, as I understand, there will be no model to save and export it to Go implementation.</p>
  
  <p>The reason I am interested in Tensorflow, is because I think its code is optimized and will run much faster than <a href="https://github.com/mpraski/clusters" rel="nofollow noreferrer">k-mean implementation</a> in Go, even with the scenario I described above.</p>
  
  <p>I need an opinion of whether:</p>
  
  <ol>
  <li>It is indeed impossible to use a Tensorflow k-mean algorithm in Go, and it is much better just to use k-means implemented in Go for this case.</li>
  <li>It is possible to do this, and some sort of example or ideas on how to do this are very much appreciated.</li>
  </ol>