简体   繁体   中英

Replace Concat Op in Frozen Graph Tensorflow

Folks,

I created a frozen graph using the LSTMCell method from Tensorflow. My problem is that LSTM Cell uses concatenation Operation. I cannot use Concat for reasons I won't explain. After I save the frozen graph, is there a way to replace the ConcatV2 or concatenation operations in my frozen graph or checkpoint?

Frozen graph, is used for inference purpose and doesn't need any intermediate outcome/gradient of the graph or parameters which are not required for inferences. That's the reason frozen file(.pb) size is bit smaller or we can say optimized if we compare the collective size of meta graph+data file.

These trained parameters(.data) are stored as constants in frozen graph and doesn't have other meta-data or intermediate parameters, which may need for restoring model and continue training.

That's the reason I can say that frozen graph can't be trained further or edit.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM