Import graph_matcher in tensorflow 2.X

Hello, I am trying to import graph_matcher in tenforflow 2.9. By default the import line looks like this: “from tensorflow.contrib.quantize.python import graph_matcher”. I know, that the contrib import is no longer supported, so what do I replace that import line with? Thanks in advance :smiley: !

In graph mode use this:

from tensorflow.python.summary.writer.writer import FileWriter
FileWriter(‘logs/’, graph=tf.compat.v1.get_default_graph()).close()
Or this:

tf.compat.v1.summary.FileWriter(‘log/’, graph=tf.compat.v1.get_default_graph()).close() [Removed by moderator)