Prepare .metagraph

97 views
Skip to first unread message

Priyanka Mudgal

unread,
Feb 4, 2022, 12:26:46 PM2/4/22
to tensorflow-compression
Hello,

I retrained HifiC model and in order to use tfci file in its current form, I need to pack *.meta, *.index, and *.data-of-00000-00001 file as *.metagraph.
Can you please share if there is a defined process for doing it?

Regards
Priyanka Mudgal

Johannes Ballé

unread,
Feb 4, 2022, 5:17:00 PM2/4/22
to tensorflow-...@googlegroups.com, Fabian Mentzer

Hi Priyanka,

unfortunately I don't know of a good, publicly available way to create a metagraph file in the same way. Basically, what we do is:

– Generate a TF graph that includes both encoder and decoder.
– Replace the TF variables with constants, then do constant folding.
– Save the resulting graph together with the function signatures for encoder and decoder (basically, which tensors are inputs and outputs for each) as a .metagraph.

The format for metagraph files are protobufs, so they are publicly accessible, but the conversion tools aren't, and they wouldn't work with the public version of TFC anyway. When we train models, we use a different codebase that only uses some parts of TFC (i.e. we don't directly use the code under models/).

Hope this helps…

Johannes


--
You received this message because you are subscribed to the Google Groups "tensorflow-compression" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tensorflow-compre...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tensorflow-compression/3742921d-aff8-4b96-b20d-520a53eedd78n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages