Categories
Misc

Obtain operators list

I am currently working on a tensorflow 1 project which I would like to migrate to tensorlfow 2, the project builds a tf model and then extracts the operations used in the model with the following code

graph = tf.get_default_graph()

operations = graph.get_operations()

I can’t find a way to do the same using tensorflow2, does anyone know how to do so? thanks!

submitted by /u/ostrichfear
[visit reddit] [comments]

Leave a Reply

Your email address will not be published. Required fields are marked *