How to translate tensorflow python API to golang API -
i want translate below tensorflow python api golang api
softmax_tensor = sess.graph.get_tensor_by_name('final_result:0') predictions = sess.run(softmax_tensor, {'decodejpeg/contents:0': image_data}) does 1 know that, thanks!
like this:
output, err := session.run( map[tf.output]*tf.tensor{ graph.operation("decodejpeg/contents").output(0): tensor, }, []tf.output{ graph.operation("final_result").output(0), }, nil)
Comments
Post a Comment